diff --git a/src/modules/blocks/code/code-renderers/RenderCodeChartJS.tsx b/src/modules/blocks/code/code-renderers/RenderCodeChartJS.tsx index 40568a6a6..b108b9bd4 100644 --- a/src/modules/blocks/code/code-renderers/RenderCodeChartJS.tsx +++ b/src/modules/blocks/code/code-renderers/RenderCodeChartJS.tsx @@ -16,7 +16,10 @@ const chartContainerSx: SxProps = { // required by Chart.js position: 'relative', - // width: '100%', + // to try to regain the chart size after shrinking + width: '100%', + // to better get resized when fullscreen + flex: 1, // limit height of the canvas or it can too large easily '& canvas': { @@ -177,7 +180,7 @@ export const RenderCodeChartJS = React.forwardRef(function RenderCodeChartJS(pro {/*)}*/} {fixupError ? ( - + Error fixing chart: {fixupError} ) : (parseResult.parseError && !isFetching) && (