diff --git a/public/app/features/dashboard/components/DashboardSettings/DashboardSettings.tsx b/public/app/features/dashboard/components/DashboardSettings/DashboardSettings.tsx index 39d1fcdc49b..33de89e6b0d 100644 --- a/public/app/features/dashboard/components/DashboardSettings/DashboardSettings.tsx +++ b/public/app/features/dashboard/components/DashboardSettings/DashboardSettings.tsx @@ -27,7 +27,6 @@ export interface SettingsPage { title: string; icon: IconName; render: () => React.ReactNode; - fullWidth?: boolean; } export class DashboardSettings extends PureComponent { @@ -99,7 +98,6 @@ export class DashboardSettings extends PureComponent { title: 'JSON Model', id: 'dashboard_json', icon: 'arrow', - fullWidth: true, render: () => , }); @@ -172,9 +170,7 @@ export class DashboardSettings extends PureComponent { )} -
- {currentPage.render()} -
+
{currentPage.render()}
@@ -202,12 +198,4 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => ({ background: ${theme.colors.background.primary}; border-radius: ${theme.shape.borderRadius()}; `, - settingsContentFullWidth: css` - flex-grow: 1; - height: 100%; - padding: 32px; - min-width: 600px; - width: 100%; - height: 100%; - `, })); diff --git a/public/app/features/dashboard/components/DashboardSettings/JsonEditorSettings.tsx b/public/app/features/dashboard/components/DashboardSettings/JsonEditorSettings.tsx index 32e305d86c9..fd1219759a3 100644 --- a/public/app/features/dashboard/components/DashboardSettings/JsonEditorSettings.tsx +++ b/public/app/features/dashboard/components/DashboardSettings/JsonEditorSettings.tsx @@ -26,7 +26,7 @@ export const JsonEditorSettings: React.FC = ({ dashboard }) => { const styles = useStyles2(getStyles); return ( - <> +

JSON Model

The JSON model below is the data structure that defines the dashboard. This includes dashboard settings, panel @@ -53,7 +53,7 @@ export const JsonEditorSettings: React.FC = ({ dashboard }) => { )} - +
); };