Bugfix/style and i18n fixes (#12350)

This commit is contained in:
Wood
2025-01-04 11:52:13 +08:00
committed by GitHub
parent 6c9e6a3a5a
commit b8ba39dfae
5 changed files with 8 additions and 6 deletions

View File

@@ -28,8 +28,8 @@ const Question: FC<QuestionProps> = ({
} = item
return (
<div className='flex justify-end mb-2 last:mb-0 pl-10'>
<div className='group relative mr-4'>
<div className='flex justify-end mb-2 last:mb-0 pl-14'>
<div className='group relative mr-4 max-w-full'>
<div
className='px-4 py-3 bg-[#D1E9FF]/50 rounded-2xl text-sm text-gray-900'
style={theme?.chatBubbleColorStyle ? CssTransform(theme.chatBubbleColorStyle) : {}}

View File

@@ -111,9 +111,9 @@ const CodeBlock: CodeComponent = memo(({ inline, className, children, ...props }
}
else if (language === 'echarts') {
return (
<div style={{ minHeight: '350px', minWidth: '700px' }}>
<div style={{ minHeight: '350px', minWidth: '100%', overflowX: 'scroll' }}>
<ErrorBoundary>
<ReactEcharts option={chartData} />
<ReactEcharts option={chartData} style={{ minWidth: '700px' }} />
</ErrorBoundary>
</div>
)