[desktop] fix model selector dropdown scroll and truncated name tooltip#3647
Merged
esengine merged 1 commit intoJun 10, 2026
Merged
Conversation
Collaborator
|
建议放张真实的图,或者生成一张mock数据的效果图 |
f9c81c1 to
5802ad9
Compare
Contributor
Author
效果说明修复前:
修复后:
验证: typecheck ✅ check:css ✅ test ✅ (93 tests) |
Contributor
Author
…d names (esengine#3628, esengine#3629) - Add max-height and overflow-y: auto to model dropdown menu - Add title attribute to model name and provider for full text tooltip - Fixes long model names being truncated without way to see full name - Fixes model list not being scrollable when there are many models
5802ad9 to
125265c
Compare
esengine
approved these changes
Jun 10, 2026
esengine
left a comment
Owner
There was a problem hiding this comment.
Thanks, this tidies up the model switcher nicely.
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.

问题
模型名称显示不全 ([Bug]: 选择模型名称存在显示不全的问题 #3628):当模型名称较长时(如 siliconflow 平台的模型带前缀),下拉列表中会被截断显示为 "deepseek-v4-...",用户无法确认完整名称。
模型列表无法滚动 ([Feature]: 模型列表显示不全,无法滚动 #3629):当配置的模型数量较多时,下拉列表没有滚动条,超出屏幕的模型无法选择。
修复
1. 添加滚动支持
给
.modelsw__menu添加:max-height: 280px— 限制下拉列表最大高度overflow-y: auto— 超出时显示滚动条2. 添加 Tooltip 显示完整名称
给模型名称和提供商名称添加
title属性,鼠标悬停时显示完整文本:<span className="modelsw__model" title={m.model}><span className="modelsw__provider" title={providerLabel(...)}>验证
npm run typecheck通过npm run check:css通过npm test通过(93 tests)截图
修复前:模型名称被截断,长列表无法滚动
修复后:鼠标悬停显示完整名称,列表可滚动