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:
parent
0a2a4e2e32
commit
8dffde9611
1 changed files with 12 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue