Add a collapsible, resizable sidebar

The sidebar collapses to a narrow rail of icons. Its collapsed state
and its width both persist across launches.
This commit is contained in:
Brandon Oxendine
2026-09-08 17:38:18 +02:00
committed by Rūdolfs Ošiņš
parent 535f5e2a18
commit ba3316c246
6 changed files with 932 additions and 192 deletions
+8 -3
View File
@@ -33,10 +33,15 @@
<Popover placement="bottom-start" bind:expanded={popoverExpanded}>
{#snippet toggle(onclick)}
<Button variant="naked" active={popoverExpanded} {onclick}>
<Button
variant="naked"
styleWidth="100%"
styleJustifyContent="flex-start"
active={popoverExpanded}
{onclick}>
<UserAvatar nodeId={config.publicKey} styleWidth="1rem" />
{config.alias}
<span style:color="var(--color-text-tertiary)">
<span class="label">{config.alias}</span>
<span class="label" style:color="var(--color-text-tertiary)">
<Icon name={popoverExpanded ? "chevron-up" : "chevron-down"} />
</span>
</Button>