From 0742e7b634d4fa199bfee1115743fd369d54845a Mon Sep 17 00:00:00 2001 From: Nabuki Date: Thu, 11 Apr 2024 12:43:25 +0300 Subject: [PATCH] intermediate design improvements --- .../lib/components/LimitNumberInput.svelte | 41 ++++- .../lib/components/MultiChoiceDropdown.svelte | 73 +++++++- .../src/lib/components/TextImageInput.svelte | 172 +++++++++++++++--- frontend/src/routes/+page.svelte | 36 +++- 4 files changed, 283 insertions(+), 39 deletions(-) diff --git a/frontend/src/lib/components/LimitNumberInput.svelte b/frontend/src/lib/components/LimitNumberInput.svelte index cedfd80..fb5b490 100644 --- a/frontend/src/lib/components/LimitNumberInput.svelte +++ b/frontend/src/lib/components/LimitNumberInput.svelte @@ -7,7 +7,6 @@ let value = maxLimit; function updateValue(event: any) { - // Use a type assertion to tell TypeScript the target is an input element let inputElement = event.target as HTMLInputElement; let inputValue = +inputElement.value; @@ -19,7 +18,6 @@ value = inputValue; } - // Dispatch the update event with the new value dispatch('update', value); } @@ -28,7 +26,44 @@ }); -
+
Лимит:
+ + diff --git a/frontend/src/lib/components/MultiChoiceDropdown.svelte b/frontend/src/lib/components/MultiChoiceDropdown.svelte index 5d61add..e4845a9 100644 --- a/frontend/src/lib/components/MultiChoiceDropdown.svelte +++ b/frontend/src/lib/components/MultiChoiceDropdown.svelte @@ -51,7 +51,9 @@