ant-design / pro-chat

🤖 Components Library for Quickly Building LLM Chat Interfaces.
https://pro-chat.antdigital.dev
MIT License
667 stars 83 forks source link

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

Closed okokkokok closed 1 month ago

okokkokok commented 2 months ago

🐛 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}

); }, }}

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

© 版本信息

ONLY-yours commented 1 month ago

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