Skip to content

fix(desktop): widen model switcher popover for long model names (#3641)#3915

Merged
esengine merged 1 commit into
main-v2from
land/3641-model-switcher-popover
Jun 11, 2026
Merged

fix(desktop): widen model switcher popover for long model names (#3641)#3915
esengine merged 1 commit into
main-v2from
land/3641-model-switcher-popover

Conversation

@esengine

Copy link
Copy Markdown
Owner

Re-lands #3641 by @0xzqy (zqy) on top of current main-v2 — the original branch conflicted with the post-#3885 popover sizing change.

Conflict resolution: kept the 160px floor that main-v2 added (minWidth: max(triggerWidth, 160)) while adopting the decoupled growth from the original PR (maxWidth: 400, no fixed width), so long model refs widen the popover without regressing the minimum size. The title hover fallbacks and ellipsis CSS land unchanged. Author credit preserved on the commit.

Closes #3641

Fixes #3628

Decouple popover width from trigger width: keep the 160px floor as
minWidth and cap growth at 400px so long model refs stay readable.
Add title attributes on model/provider labels as a hover fallback.

Fixes #3628
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 02:47
@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 11, 2026
@esengine esengine merged commit 9539c35 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the land/3641-model-switcher-popover branch June 11, 2026 03:03
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