The dashboard settings button toggles

It only ever opened, so the way out of the settings panel was somewhere else.
Pressing it again closes it, and it carries the pressed state the other dock
toggles do.
This commit is contained in:
2026-08-27 16:15:39 +02:00
parent 0495a84dcc
commit d42e0aa351
@@ -638,11 +638,19 @@ export function DashboardEditor({
<Button
variant="ghost"
size="icon"
className="size-11 text-muted-foreground md:size-8"
className={cn(
"size-11 text-muted-foreground md:size-8",
settingsOpen && "text-primary",
)}
onClick={() => {
if (settingsOpen) {
setSettingsOpen(false)
return
}
setSelected(null)
setSettingsOpen(true)
}}
aria-pressed={settingsOpen}
aria-label="Dashboard settings"
data-testid="edit-dashboard"
>