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

@@ -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>
)