From b5cdb0d81bbe723d1018bc7599bbcfb6e0572b3f Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 10 Nov 2024 20:41:45 +0400 Subject: [PATCH 1/2] Show the active profile directly in the index view --- .../ui/menu/MenuCheckboxItem.svelte | 36 +++++++++++++++++++ src/routes/+page.svelte | 17 +++++++++ 2 files changed, 53 insertions(+) create mode 100644 src/components/ui/menu/MenuCheckboxItem.svelte diff --git a/src/components/ui/menu/MenuCheckboxItem.svelte b/src/components/ui/menu/MenuCheckboxItem.svelte new file mode 100644 index 0000000..77d5383 --- /dev/null +++ b/src/components/ui/menu/MenuCheckboxItem.svelte @@ -0,0 +1,36 @@ + + + + + + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8c3d976..27ae80e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,9 +1,26 @@ + {#if activeProfile} + + Active Profile: {activeProfile.settings.name} + +
+ {/if} Tagging Profiles
Preferences From 198b9da4076a838d4cd4ab19ef7e740e545a9937 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 10 Nov 2024 20:45:42 +0400 Subject: [PATCH 2/2] Fixed shrinking of the inputs on radio & checkbox items --- src/components/ui/menu/MenuCheckboxItem.svelte | 1 + src/components/ui/menu/MenuRadioItem.svelte | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ui/menu/MenuCheckboxItem.svelte b/src/components/ui/menu/MenuCheckboxItem.svelte index 77d5383..75eb520 100644 --- a/src/components/ui/menu/MenuCheckboxItem.svelte +++ b/src/components/ui/menu/MenuCheckboxItem.svelte @@ -32,5 +32,6 @@ width: 16px; height: 16px; margin-right: 6px; + flex-shrink: 0; } diff --git a/src/components/ui/menu/MenuRadioItem.svelte b/src/components/ui/menu/MenuRadioItem.svelte index 54bb9a4..1672400 100644 --- a/src/components/ui/menu/MenuRadioItem.svelte +++ b/src/components/ui/menu/MenuRadioItem.svelte @@ -32,5 +32,6 @@ width: 16px; height: 16px; margin-right: 6px; + flex-shrink: 0; }