diff --git a/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsCode.tsx b/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsCode.tsx index aabd9707377..9ffad2ef066 100644 --- a/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsCode.tsx +++ b/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsCode.tsx @@ -83,8 +83,8 @@ function ExportAsCodeRenderer({ model }: SceneComponentProps) { )}
- - {({ width, height }) => { + + {({ height }) => { if (stringifiedDashboard) { return ( ) { showLineNumbers={true} showMiniMap={false} height={height} - width={width} + width="100%" readOnly={true} /> );