feat: add navigation collapse functionality to layout (#5815)

* feat(layout): add collapsible navbar toggle in UI settings

* refactor(layout): adjust collapsed navbar styles

* docs: Changelog.md

---------

Co-authored-by: Slinetrac <realakayuki@gmail.com>
This commit is contained in:
Cactus
2025-12-19 18:15:20 +08:00
committed by GitHub
co-authored by Slinetrac
parent fc84dc561c
commit 57b17ab8d3
22 changed files with 151 additions and 4 deletions
@@ -338,6 +338,24 @@ export const LayoutViewer = forwardRef<DialogRef>((_, ref) => {
</GuardState>
</Item>
<Item>
<ListItemText
primary={t(
"settings.components.verge.layout.fields.collapseNavBar",
)}
/>
<GuardState
value={verge?.collapse_navbar ?? false}
valueProps="checked"
onCatch={onError}
onFormat={onSwitchFormat}
onChange={(e) => onChangeData({ collapse_navbar: e })}
onGuard={(e) => patchVerge({ collapse_navbar: e })}
>
<Switch edge="end" />
</GuardState>
</Item>
{OS === "macos" && (
<Item>
<ListItemText