Skip to content

移动端过长模型名称显示不完整 #7513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hubedge opened this issue Apr 22, 2025 · 5 comments · May be fixed by #7960
Open

移动端过长模型名称显示不完整 #7513

Hubedge opened this issue Apr 22, 2025 · 5 comments · May be fixed by #7960
Labels
💄 Design Design an style | 样式问题 📱 Mobile Device Issue in mobile view | 移动设备 unconfirm 未被维护者确认的问题

Comments

@Hubedge
Copy link

Hubedge commented Apr 22, 2025

📦 部署环境

Vercel

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

1.81.9

💻 系统环境

Android

🌐 浏览器

Chrome

🐛 问题描述

模型名称过长时,名称显示不完整

Image

📷 复现步骤

No response

🚦 期望结果

能够完整显示模型名称

📝 补充信息

No response

@Hubedge Hubedge added the unconfirm 未被维护者确认的问题 label Apr 22, 2025
@lobehubbot
Copy link
Member

👀 @Hubedge

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Vercel

📦 Deployment mode

Server-side mode (lobe-chat-database mirror)

📌 Software version

1.81.9

💻 System environment

Android

🌐 Browser

Chrome

🐛 Question description

When the model name is too long, the name display is incomplete

Image

📷 Reproduction steps

No response

🚦 Expected results

Able to display the model name in full

📝 Supplementary information

No response

@dosubot dosubot bot added 💄 Design Design an style | 样式问题 📱 Mobile Device Issue in mobile view | 移动设备 labels Apr 22, 2025
Copy link

dosubot bot commented Apr 22, 2025

Hello @Hubedge! I'm Dosu, here to help you tackle bugs, answer questions, and guide you in becoming a contributor. Let me know how I can assist you while we wait for a human maintainer!

I found a similar closed issue related to custom model names not displaying correctly. The issue was resolved by a pull request that fixed the display problem [1]. You might want to check if the solution implemented in that pull request can be applied to your case. Additionally, the lobe-chat codebase includes CSS components that handle text overflow or truncation, which might be useful for addressing the issue of long model names not displaying completely [2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@Hubedge
Copy link
Author

Hubedge commented Apr 22, 2025

@dosu looks like a different bug

Copy link

dosubot bot commented Apr 22, 2025

To address the issue of long model names not displaying completely on mobile devices, you can consider using CSS properties that handle text overflow or truncation. The lobe-chat codebase uses the following properties:

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;

These properties can help ensure that text is truncated with an ellipsis when it exceeds the available space, preventing it from being cut off abruptly [1][2].

Additionally, for mobile devices, the Popover component is styled to ensure content is fully visible by setting its width to the full viewport width (100vw) when the device is mobile [3]. This approach can be useful for ensuring that model names are displayed correctly on smaller screens.

If these solutions don't resolve the issue, you might need to explore further adjustments in the layout or font size specifically for mobile views.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💄 Design Design an style | 样式问题 📱 Mobile Device Issue in mobile view | 移动设备 unconfirm 未被维护者确认的问题
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants