Skip to content

fix(SideNav): Improve classic sidebar collapse behavior - #2384

Open
kai-orion wants to merge 1 commit into
jlcodes99:mainfrom
kai-orion:fix/nav
Open

kai-orion wants to merge 1 commit into
jlcodes99:mainfrom
kai-orion:fix/nav

Conversation

@kai-orion

@kai-orion kai-orion commented Sep 11, 2026 •

Copy link
Copy Markdown

#2383

更新内容

更改文件:

  • SideNav.tsx
  • layout.css

核心變更:

經典 SideNav 收起時讓選項文字脫離排版流並瞬間隱藏 ( 與修復前行爲保持一致 )、只保留顏色過渡,並消除關閉過程中的背景收窄問題。

修復對比

修復前:
cockpit-tools_5RFvwtFrMS

修復後:
cockpit-tools_77W39uG9PA

This patch keeps classic sidebar labels hidden when collapsed while preserving tooltips in non-classic layouts. It also guards the adaptive scale/scroll logic around rapid collapse toggles to avoid scroll state thrash during resize, and adds the collapsed styling needed for brand/title text.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant