Fix code editor width in dashboard export dialog (#112203)

This commit is contained in:
Dominik Prokop
2025-10-09 15:24:26 +00:00
committed by GitHub
parent d61abe95ad
commit 0d9b5fafc8
@@ -83,8 +83,8 @@ function ExportAsCodeRenderer({ model }: SceneComponentProps<ExportAsCode>) {
)}
<div className={styles.codeEditorBox}>
<AutoSizer data-testid={selector.codeEditor}>
{({ width, height }) => {
<AutoSizer data-testid={selector.codeEditor} disableWidth>
{({ height }) => {
if (stringifiedDashboard) {
return (
<CodeEditor
@@ -93,7 +93,7 @@ function ExportAsCodeRenderer({ model }: SceneComponentProps<ExportAsCode>) {
showLineNumbers={true}
showMiniMap={false}
height={height}
width={width}
width="100%"
readOnly={true}
/>
);