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
					
				| @ -96,8 +96,7 @@ const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' | |||||||
|       :value="uuids" |       :value="uuids" | ||||||
|       multiline |       multiline | ||||||
|       placeholder="Your uuids" |       placeholder="Your uuids" | ||||||
|       autosize |       :rows="count" | ||||||
|       rows="1" |  | ||||||
|       readonly |       readonly | ||||||
|       raw-text |       raw-text | ||||||
|       monospace |       monospace | ||||||
| @ -105,6 +104,7 @@ const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' | |||||||
|       class="uuid-display" |       class="uuid-display" | ||||||
|     /> |     /> | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|     <div flex justify-center gap-3> |     <div flex justify-center gap-3> | ||||||
|       <c-button autofocus @click="copy()"> |       <c-button autofocus @click="copy()"> | ||||||
|         Copy |         Copy | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user