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:
Praneeth Ravuri 2024-05-11 01:14:04 -04:00
parent b59942ad9f
commit 70743a5fcc

View file

@ -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