mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user