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] 对话字体大小无法设置 #277

Closed
okokkokok opened this issue Jul 15, 2024 · 1 comment
Closed

🐛[BUG] 对话字体大小无法设置 #277

okokkokok opened this issue Jul 15, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@okokkokok
Copy link

🐛 bug 描述

内容展示无法设置字体大小,
chatItemRenderConfig={{
contentRender: (_, defaultContent) => {
return (
<div
style={{
// border: '1px solid #1890ff',
borderRadius: '8px',
height: 'auto',
padding: '8px',
color: 'rgb(38,64,15)',
fontWeight: 400,
fontSize: '24px!important',
}}
>
{defaultContent}

);
},
}}

描述你原本期望看到的结果
-->

© 版本信息

  • @ant-design/pro-chat 版本: [e.g. 1.0.0]
  • 浏览器环境
  • 开发环境 [e.g. mac OS]
@okokkokok okokkokok changed the title 🐛[BUG] 🐛[BUG] 对话字体大小无法设置 Jul 15, 2024
@ONLY-yours ONLY-yours added the documentation Improvements or additions to documentation label Jul 25, 2024
@ONLY-yours
Copy link
Collaborator

这是因为我们组件的字体和大小是直接设置的,如果你要改动的话,可以用 css 选择器选择下方所有的 div 的字体大小。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants