fix(desktop): increase sidebar min-width, prevent text wrap in new-ch…#2352
Open
hclgdb wants to merge 1 commit into
Open
fix(desktop): increase sidebar min-width, prevent text wrap in new-ch…#2352hclgdb wants to merge 1 commit into
hclgdb wants to merge 1 commit into
Conversation
…at button / 增大侧边栏最小宽度,防止新会话按钮文字换行 - useResizable: MIN_WIDTH 200→220, give more room for CJK text / 给 CJK 文字更多空间 - styles.css: add overflow:hidden to new-btn as safety net / 添加溢出隐藏兜底
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Increase sidebar minimum width from 200px to 220px and add
overflow: hiddento the new-chat button to prevent CJK text wrapping. / 增大侧边栏最小宽度,
防止新会话按钮内中文文字换行。
Why
The sidebar can be dragged to 200px wide, leaving only ~100px for the
"new-chat" button. "新会话" (3 CJK characters) needs ~95px, leaving
virtually no margin — "话" wraps to the next line on some font renderings.
/ 侧边栏可拖拽至 200px,按钮可用空间不足 100px,三字约需 95px,
在部分字体渲染下"话"字被换行。
How to verify
npm run verifypasses locallyChecklist
npm run verifypasses locally (lint + typecheck + tests + comment-policy gate)Co-Authored-By: Claudetrailer in commitsCHANGELOG.md— release notes are maintainer-written at release time