Skip to content

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

Closed
whale-fall-ouo wants to merge 1 commit into
esengine:main-v2from
whale-fall-ouo:fix/model-switcher-overflow
Closed

fix(desktop): widen model switcher popover for long model names#3641
whale-fall-ouo wants to merge 1 commit into
esengine:main-v2from
whale-fall-ouo:fix/model-switcher-overflow

Conversation

@whale-fall-ouo

Copy link
Copy Markdown
Contributor

Decouple popover width from trigger width by using minWidth instead of fixed width, and set maxWidth to 400px. Add title attributes on model name and provider labels for hover tooltip fallback.

Fixes #3628

Decouple popover width from trigger width by using minWidth instead
of fixed width, and set maxWidth to 400px. Add title attributes on
model name and provider labels for hover tooltip fallback.

Fixes esengine#3628

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 9, 2026
@whale-fall-ouo

Copy link
Copy Markdown
Contributor Author
image

@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.

Good fix. Decoupling the popover width from the trigger (minWidth + a 400px cap) plus the title fallbacks handles long model names cleanly, and splitting the ellipsis rules keeps the provider line styled independently. Thanks!

@esengine esengine enabled auto-merge (squash) June 11, 2026 02:07
auto-merge was automatically disabled June 11, 2026 03:03

Pull request was closed

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]: 选择模型名称存在显示不全的问题

3 participants