Skip to content

fix(desktop): prevent command palette session text clipping#3962

Merged
esengine merged 1 commit into
esengine:main-v2from
GTC2080:fix/recent-session-search-clipping
Jun 11, 2026
Merged

fix(desktop): prevent command palette session text clipping#3962
esengine merged 1 commit into
esengine:main-v2from
GTC2080:fix/recent-session-search-clipping

Conversation

@GTC2080

@GTC2080 GTC2080 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The command palette still had a legacy Command Palette CSS block later in styles.css. Because it came after the current palette styles, it changed .palette__item to a vertical layout. Recent-session rows then centered the icon above the title and let long session text or workspace paths overflow horizontally, clipping the leading characters (#3842).

Fix

Removed the stale duplicate palette block so the current row layout and theme overrides remain the only palette styling. Added a frontend CSS regression test that checks palette rows keep a side-by-side icon/text layout and retain the title/path ellipsis constraints.

Tests

  • npm run test:all
  • npm run build
  • Browser smoke check on http://127.0.0.1:5184/?mock=demo: filtered the palette to a recent session and confirmed the row computes to display: flex; flex-direction: row, with no horizontal list overflow.

Closes #3842

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, and thanks for going the extra mile with a regression test — the cascade-order trap here (stale block later in the file silently winning) is exactly the kind of thing that needs one. The test wiring into test/test:all matches our harness style, LGTM.

Two tiny things the old block carried that I'll restore in a small follow-up (no action needed from you): the .palette__item:focus-visible outline, and the detached search button's hardcoded ⌘K label on Windows/Linux.

@esengine esengine merged commit 810807a into esengine:main-v2 Jun 11, 2026
14 checks passed
esengine pushed a commit that referenced this pull request Jun 11, 2026
…ch kbd

Follow-up to #3962: the removed legacy block was the only carrier of the
.palette__item:focus-visible outline, and the detached chrome search
button (rendered on Windows/Linux only) was hardcoded to the mac glyph.

Closes #3841
esengine added a commit that referenced this pull request Jun 11, 2026
…ch kbd (#3964)

Follow-up to #3962: the removed legacy block was the only carrier of the
.palette__item:focus-visible outline, and the detached chrome search
button (rendered on Windows/Linux only) was hardcoded to the mac glyph.

Closes #3841

Co-authored-by: reasonix <reasonix@deepseek.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: “搜索”功能“最近会话”开头显示被截断问题

2 participants