Dashboard: Reduce scope of `contain: strict` to TextPanel (#75329)

pull/75424/head
Leon Sorokin 2 years ago committed by GitHub
parent be850b2cbb
commit ade0de5ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-ui/src/components/PanelChrome/PanelChrome.tsx
  2. 5
      public/app/plugins/panel/text/TextPanel.tsx
  3. 1
      public/sass/pages/_dashboard.scss

@ -403,7 +403,6 @@ const getStyles = (theme: GrafanaTheme2) => {
content: css({
label: 'panel-content',
flexGrow: 1,
contain: 'strict',
}),
headerContainer: css({
label: 'panel-header',

@ -51,7 +51,7 @@ export function TextPanel(props: Props) {
}
return (
<CustomScrollbar autoHeightMin="100%">
<CustomScrollbar autoHeightMin="100%" className={styles.containStrict}>
<DangerouslySetHtmlContent
html={processed.content}
className={styles.markdown}
@ -103,4 +103,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
height: 100%;
`
),
containStrict: css({
contain: 'strict',
}),
});

@ -46,7 +46,6 @@
padding: $panel-padding;
width: 100%;
flex-grow: 1;
contain: strict;
height: calc(100% - #{$panel-header-height});
&--no-padding {

Loading…
Cancel
Save