Revert "Dashboard: Reduce scope of `contain: strict` to TextPanel (#75466)

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

This reverts commit ade0de5ae9.
pull/75375/head^2
Dominik Prokop 2 years ago committed by GitHub
parent 896b12d422
commit 918f11d81e
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,6 +403,7 @@ 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%" className={styles.containStrict}>
<CustomScrollbar autoHeightMin="100%">
<DangerouslySetHtmlContent
html={processed.content}
className={styles.markdown}
@ -103,7 +103,4 @@ const getStyles = (theme: GrafanaTheme2) => ({
height: 100%;
`
),
containStrict: css({
contain: 'strict',
}),
});

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

Loading…
Cancel
Save