From fe6a0008f052c6da87a718438d1de5171fa067eb Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:21:07 +0530 Subject: [PATCH 1/3] fix:added support for tablet too --- src/lib/components/sidebar.svelte | 88 +++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 28 deletions(-) diff --git a/src/lib/components/sidebar.svelte b/src/lib/components/sidebar.svelte index 732c43555..ea9d712d3 100644 --- a/src/lib/components/sidebar.svelte +++ b/src/lib/components/sidebar.svelte @@ -124,7 +124,7 @@ -
+
{#if progressCard} {projectOption.name} {/each} -
- -
-
+ {#if project} + + {/if} {:else if $isSmallViewport}
@@ -308,7 +309,7 @@ on:click={() => { trackEvent('click_menu_settings'); }} - class:active={isSelected('/settings') && !isSelected('sites')} + class:active={false} > + .middle-container { + flex: 1; + overflow-y: visible; + max-height: none; + } + .bottom { + position: sticky; + bottom: 0; + background: var(--bgcolor-neutral-primary, #fff); + border-top: 1px solid var(--border-neutral, #ededf0); + padding-top: var(--space-4, 8px); + z-index: 10; + + @media (min-width: 1024px) { + height: var(--base-32, 32px); + border-top: none; + padding-top: 0; + position: static; + } + } + .mobile-tablet-settings { + display: block; + margin-top: var(--space-6, 12px); + + &::before { + content: ''; + display: block; + height: 1px; + background: var(--border-neutral, #ededf0); + margin-bottom: var(--space-6, 12px); + } + + @media (min-width: 1024px) { + display: none; + } + } + .link { display: flex; height: 32px; @@ -578,12 +616,6 @@ width: 100%; } - .bottom { - @media (min-width: 1024px) { - height: var(--base-32, 32px); - } - } - :global(button.collapse) { transform: translateX(-10px); } From 3a7b64df81bda339bb72bb9978619b5043132a0b Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:42:53 +0530 Subject: [PATCH 2/3] fix: removed unused css class --- src/lib/components/sidebar.svelte | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lib/components/sidebar.svelte b/src/lib/components/sidebar.svelte index ea9d712d3..563fd0e92 100644 --- a/src/lib/components/sidebar.svelte +++ b/src/lib/components/sidebar.svelte @@ -365,21 +365,7 @@ overflow-y: visible; max-height: none; } - .bottom { - position: sticky; - bottom: 0; - background: var(--bgcolor-neutral-primary, #fff); - border-top: 1px solid var(--border-neutral, #ededf0); - padding-top: var(--space-4, 8px); - z-index: 10; - @media (min-width: 1024px) { - height: var(--base-32, 32px); - border-top: none; - padding-top: 0; - position: static; - } - } .mobile-tablet-settings { display: block; margin-top: var(--space-6, 12px); From db96350e35be8a20bdd0fffca0ff90a6e252a432 Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:15:01 +0530 Subject: [PATCH 3/3] added highlight condition back --- src/lib/components/sidebar.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/sidebar.svelte b/src/lib/components/sidebar.svelte index 563fd0e92..9c128d556 100644 --- a/src/lib/components/sidebar.svelte +++ b/src/lib/components/sidebar.svelte @@ -250,7 +250,7 @@ sideBarIsOpen = false; }} class="link" - class:active={false} + class:active={isSelected('/settings') && !isSelected('sites')} > { trackEvent('click_menu_settings'); }} - class:active={false} + class:active={isSelected('/settings') && !isSelected('sites')} >