From ade0de5ae9277f17bf4977bf2e350f9a4e4da224 Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Mon, 25 Sep 2023 15:47:38 -0500 Subject: [PATCH] Dashboard: Reduce scope of `contain: strict` to TextPanel (#75329) --- .../grafana-ui/src/components/PanelChrome/PanelChrome.tsx | 1 - public/app/plugins/panel/text/TextPanel.tsx | 5 ++++- public/sass/pages/_dashboard.scss | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/PanelChrome/PanelChrome.tsx b/packages/grafana-ui/src/components/PanelChrome/PanelChrome.tsx index 90da9adfd77..f7e9b09289f 100644 --- a/packages/grafana-ui/src/components/PanelChrome/PanelChrome.tsx +++ b/packages/grafana-ui/src/components/PanelChrome/PanelChrome.tsx @@ -403,7 +403,6 @@ const getStyles = (theme: GrafanaTheme2) => { content: css({ label: 'panel-content', flexGrow: 1, - contain: 'strict', }), headerContainer: css({ label: 'panel-header', diff --git a/public/app/plugins/panel/text/TextPanel.tsx b/public/app/plugins/panel/text/TextPanel.tsx index 3252c3fb718..d831532f48a 100644 --- a/public/app/plugins/panel/text/TextPanel.tsx +++ b/public/app/plugins/panel/text/TextPanel.tsx @@ -51,7 +51,7 @@ export function TextPanel(props: Props) { } return ( - + ({ height: 100%; ` ), + containStrict: css({ + contain: 'strict', + }), }); diff --git a/public/sass/pages/_dashboard.scss b/public/sass/pages/_dashboard.scss index 77c985f4435..e46ab1d0108 100644 --- a/public/sass/pages/_dashboard.scss +++ b/public/sass/pages/_dashboard.scss @@ -46,7 +46,6 @@ padding: $panel-padding; width: 100%; flex-grow: 1; - contain: strict; height: calc(100% - #{$panel-header-height}); &--no-padding {