FlowiseAI / FlowiseChatEmbed

276 stars 1.17k forks source link

Default font size on BotBubble is now 1rem due to prose #188

Closed automaton82 closed 3 weeks ago

automaton82 commented 3 weeks ago

The prose class adds 1rem font-size to BotBubble. This is supposed to be override by the defaultFontSize which is 16, but this doesn't seem to work due to lack of px on the definition. Here is the current constant and use in BotBubble.tsx:

...
const defaultFontSize = 16;
...
'font-size': props.fontSize ? `${props.fontSize}px` : `${defaultFontSize}`,

If you run it as-is and inspect the message from the system, it'll be 1rem which for me is 14px.

I believe this font-size line needs to be:

'font-size': props.fontSize ? `${props.fontSize}px` : `${defaultFontSize}px`,

On my local instance this solves it, but the same would have to be done for all the defaultFontSize usages in the embed app.

automaton82 commented 3 weeks ago

Thanks!!