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

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

This reverts commit ade0de5ae9.
This commit is contained in:
Dominik Prokop 2023-09-26 17:51:26 +02:00 committed by GitHub
parent 896b12d422
commit 918f11d81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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',
}),
});

View File

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