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

feat: limit the maximum width of message content. #506

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyanray
Copy link

@cyanray cyanray commented Dec 20, 2024

修改说明

  1. 修改 MessageContainer 的最大宽度为 780px,提高全屏模式下的可阅读性;
  2. 为 Markdown 组件添加 overflow-x: auto; CSS 样式,在遇到过长的行内代码(它不可打断)时显示横向滚动条;

Closes #422

@kangfenmao
Copy link
Collaborator

感谢 PR,这里我还有新的设计还没有做,需要增加配置和按钮来控制宽度

@cyanray
Copy link
Author

cyanray commented Dec 21, 2024

感谢 PR,这里我还有新的设计还没有做,需要增加配置和按钮来控制宽度

那就更好了,我的实现比较简陋,还应该把提示词和输入框也一起缩小,这样会更协调。期待作者的实现。

@kangfenmao kangfenmao force-pushed the main branch 3 times, most recently from 63abe52 to ccb216e Compare December 27, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[功能]: 限制消息内容的最大显示宽度
2 participants