diff --git a/configurator/src/App.svelte b/configurator/src/App.svelte index a53099f8..cfac27d9 100644 --- a/configurator/src/App.svelte +++ b/configurator/src/App.svelte @@ -1,6 +1,6 @@ {#snippet navButton(item: NavItem)} @@ -73,26 +78,30 @@ onclick={() => onSelect(item.id)} title={item.label} aria-current={isActive ? "page" : undefined} - class={`relative flex items-center justify-center md:justify-start gap-2.5 w-10 md:w-full h-10 md:h-8 px-0 md:px-2.5 rounded-xl transition-all cursor-pointer group ${ + class={`relative flex items-center gap-2.5 rounded-xl transition-all cursor-pointer group ${ + expanded + ? "justify-start w-full h-9 px-2.5" + : "justify-center md:justify-start w-10 md:w-full h-10 md:h-8 px-0 md:px-2.5" + } ${ isActive ? "bg-indigo-600 text-white shadow-lg shadow-indigo-600/30" : "text-slate-500 hover:text-slate-800 dark:hover:text-slate-200 hover:bg-black/8 dark:hover:bg-white/8" }`} > - {item.label} + {item.label} {#if count > 0} - + {count > 9 ? "+" : count} @@ -100,24 +109,24 @@ {/if} - - + + {item.label} {/snippet} - + {@render navButton(HOME)} {#each GROUPS as group (group.label)} - - + + {group.label} - + {#each group.items as item (item.id)} {@render navButton(item)} {/each}