Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Long provider model names push the "选择..." button off-screen, preventing users from changing providers.

Changes

  • Added CSS text truncation to provider name display in ProviderSelector.vue:
    .provider-name-text {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: calc(100% - 80px);
      display: inline-block;
    }

Screenshot

Before/After comparison

Long names like ollama_gemma4b\functiongemma:270m now truncate with ellipsis, keeping the button accessible.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug] 当配置文件里的模型名称过于长的时候更换模型按钮无法显示</issue_title>
<issue_description>### What happened / 发生了什么

Image 如题,我配置了ollamagemma4b下的一个名称很长的模型,但选择后就无法更改 解决方法1:去目录下的文件删掉才能重新配置 解决方法2:找不到文件可以尝试备份后解压,在config\cmd_config.json搜索default_provider_id或者default_image_caption_provider_id进行删减后重新打包导入,重新打包导入可能会有报错提示什么位置已经有文件了创建不了 你去按照目录删了就行如下图) Image

Reproduce / 如何复现?

如何复现?
1:在模型里导入一个名称超长的模型(我是导入的functiongemma:270m 全名路径为ollama——gemma3:4b\functiongemma:270m)
2:去配置文件更换为以上模型(并不是模型问题是名字太长导致的)
3:点击保存,你就发现你卡在这个位置了(恼

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

4.12.1 AstrBotLauncher 桌面版本
谷歌浏览器 145.0.7587.5

OS

Windows

Logs / 报错日志

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

  • I have read and agree to abide by the project's Code of Conduct
    </issue_description>

<agent_instructions>限制 “select_provider” 的模型的显示width。最小化改动</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix button visibility issue when model name is too long Fix provider selector button hidden by long model names Jan 23, 2026
Copilot AI requested a review from Soulter January 23, 2026 09:42
@Soulter Soulter marked this pull request as ready for review January 23, 2026 11:40
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 23, 2026
@Soulter Soulter merged commit 90b57eb into master Jan 23, 2026
5 checks passed
@dosubot dosubot bot added the area:provider The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner. label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:provider The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 当配置文件里的模型名称过于长的时候更换模型按钮无法显示

2 participants