Skip to content
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

[Bug] additional space in strong chinese text #4347

Closed
sssxks opened this issue Oct 13, 2024 · 4 comments · Fixed by lobehub/lobe-ui#211 or lobehub/lobe-ui#212
Closed

[Bug] additional space in strong chinese text #4347

sssxks opened this issue Oct 13, 2024 · 4 comments · Fixed by lobehub/lobe-ui#211 or lobehub/lobe-ui#212
Labels
🐛 Bug Something isn't working | 缺陷 💄 Design Design an style | 样式问题

Comments

@sssxks
Copy link

sssxks commented Oct 13, 2024

📦 部署环境

Official Preview

📌 软件版本

v1.22.1

💻 系统环境

Windows

🌐 浏览器

Other

🐛 问题描述

AB

渲染为
image
image

📷 复现步骤

No response

🚦 期望结果

没有空格

📝 补充信息

No response

@sssxks sssxks added the 🐛 Bug Something isn't working | 缺陷 label Oct 13, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Oct 13, 2024
@lobehubbot
Copy link
Member

👀 @sssxks

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

Official Preview

📌 Software version

v1.22.1

💻 System environment

Windows

🌐 Browser

Other

🐛 Problem description

AB
Wowah

Rendered as
image
image

📷 Steps to reproduce

No response

🚦 Expected results

no spaces

📝 Supplementary information

No response

Copy link

dosubot bot commented Oct 13, 2024

@sssxks 你好!我是Dosu,一个可以帮助你解决问题、回答疑问并成为贡献者的机器人。我会在等待人类维护者的过程中为你提供帮助。

The issue you're experiencing with additional spaces in <strong> tags for Chinese text might be related to how the HTML rendering logic handles text styling. The current implementation uses a dynamic font size for <strong> tags:

<strong style={{ fontSize: 'min(56px, 8vw)' }}>{BRANDING_NAME}</strong>

This styling could potentially affect spacing, especially with mixed language content. You might want to check if the font size or any other CSS properties are causing the extra space. Adjusting these styles could help resolve the issue [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 💄 Design Design an style | 样式问题 label Oct 13, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Oct 14, 2024
@lobehubbot
Copy link
Member

@sssxks

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 💄 Design Design an style | 样式问题
Projects
Archived in project
2 participants