Skip to content

Commit 155a35d

Browse files
committed
Fix requested changes
1 parent a1c3c3c commit 155a35d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

ui/src/components/layout/Sidebar.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ export function Sidebar() {
12901290
</div>
12911291
</div>
12921292

1293-
{/* 8. Footer: Community + Help + Settings */}
1293+
{/* 8. Footer: Community + Help + Sidebar toggle */}
12941294
<div className="flex items-center justify-between gap-2 border-t border-(--border-subtle) bg-(--bg-surface-1) px-3 py-2.5">
12951295
{/* <Button
12961296
variant="secondary"
@@ -1307,6 +1307,15 @@ export function Sidebar() {
13071307
>
13081308
<IconHelp />
13091309
</button>
1310+
<button
1311+
type="button"
1312+
onClick={() => setCollapsed((c) => !c)}
1313+
className="flex size-8 items-center justify-center rounded-(--radius-md) text-(--txt-icon-tertiary) hover:bg-(--bg-layer-transparent-hover) hover:text-(--txt-icon-secondary)"
1314+
aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}
1315+
title={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}
1316+
>
1317+
<IconPanelLeft />
1318+
</button>
13101319
</div>
13111320
</div>
13121321
</aside>

0 commit comments

Comments
 (0)