Sidebar: settings gear above the profile in the collapsed rail (#7458)

The profile-row cog is hidden when the rail collapses, leaving no way to
reach settings without opening the account menu.
This commit is contained in:
Michael Han 2026-07-25 23:09:48 -07:00 committed by GitHub
commit 8dffde9611
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1855,6 +1855,18 @@ export function AppSidebar() {
</button>
</SidebarMenuItem>
)}
{/* Collapsed rail has no room for the cog on the profile row, so it
sits above the avatar instead. */}
<NavItem
className="hidden group-data-[collapsible=icon]:block"
icon={Settings02Icon}
label={t("shell.navigation.settings")}
active={false}
onClick={() => {
useSettingsDialogStore.getState().openDialog();
closeMobileIfOpen();
}}
/>
<SidebarMenuItem>
<DropdownMenu>
<DropdownMenuTrigger asChild>