File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments