mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 07:46:15 -04:00
fix(uuid-generator): prevent textarea height increase on refresh
The height of the textarea in the UUID Generator component was increasing with each refresh due to the dynamic calculation of the number of rows based on the quantity. This commit fixes the issue by setting a fixed number of rows for the textarea, ensuring a consistent height regardless of the quantity of UUIDs generated.
This commit is contained in:
parent
b59942ad9f
commit
70743a5fcc
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,7 @@ const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard'
|
|||
:value="uuids"
|
||||
multiline
|
||||
placeholder="Your uuids"
|
||||
autosize
|
||||
rows="1"
|
||||
:rows="count"
|
||||
readonly
|
||||
raw-text
|
||||
monospace
|
||||
|
@ -105,6 +104,7 @@ const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard'
|
|||
class="uuid-display"
|
||||
/>
|
||||
|
||||
|
||||
<div flex justify-center gap-3>
|
||||
<c-button autofocus @click="copy()">
|
||||
Copy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue