From 70743a5fcc7b6024a7b683910536762b93968bf0 Mon Sep 17 00:00:00 2001 From: Praneeth Ravuri Date: Sat, 11 May 2024 01:14:04 -0400 Subject: [PATCH 1/2] 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. --- src/tools/uuid-generator/uuid-generator.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/uuid-generator/uuid-generator.vue b/src/tools/uuid-generator/uuid-generator.vue index 22b32ba3..71e1e876 100644 --- a/src/tools/uuid-generator/uuid-generator.vue +++ b/src/tools/uuid-generator/uuid-generator.vue @@ -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" /> +
Copy From 73a0370c29486ee8c915fbe7668c19609c21411b Mon Sep 17 00:00:00 2001 From: Praneeth Ravuri Date: Sat, 11 May 2024 01:20:23 -0400 Subject: [PATCH 2/2] style(uuid-generator): remove whitespaces --- src/tools/uuid-generator/uuid-generator.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools/uuid-generator/uuid-generator.vue b/src/tools/uuid-generator/uuid-generator.vue index 71e1e876..ccb66a32 100644 --- a/src/tools/uuid-generator/uuid-generator.vue +++ b/src/tools/uuid-generator/uuid-generator.vue @@ -104,7 +104,6 @@ const { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' class="uuid-display" /> -
Copy