Skip to content

fix(desktop): sidebar new-chat button text overflow on narrow containers#2380

Open
binbinsilk wants to merge 1 commit into
esengine:v1from
binbinsilk:fix/desktop-sidebar-new-chat-overflow
Open

fix(desktop): sidebar new-chat button text overflow on narrow containers#2380
binbinsilk wants to merge 1 commit into
esengine:v1from
binbinsilk:fix/desktop-sidebar-new-chat-overflow

Conversation

@binbinsilk
Copy link
Copy Markdown

@binbinsilk binbinsilk commented May 30, 2026

What

修复桌面端侧边栏"New Chat"按钮在窄容器下的文本溢出问题。为 .side-head .new-btn 添加 white-space: nowrapoverflow: hidden,并为文本 span 添加 display: inline-block 以确保 text-overflow: ellipsis 正确生效。

Why

侧边栏缩窄时,"New Chat"按钮内的文本可能换行或溢出,破坏按钮布局的整洁性。这是 flex-wrap: nowrapmin-width: 0 设置后的补充修复,确保 ellipsis 截断在 flex 子元素上正常工作。

How to verify

  1. 启动桌面端:cd desktop && npm run dev
  2. 将侧边栏宽度缩至 191px 以下
  3. 确认"New Chat"按钮文本显示为单行省略号,不换行溢出

#2113

@esengine esengine added the v1 Legacy TypeScript line (0.x) — v1 branch, maintenance only label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 Legacy TypeScript line (0.x) — v1 branch, maintenance only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants