mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Dashboard: Reduce scope of contain: strict
to TextPanel (#75499)
This commit is contained in:
parent
31933c9569
commit
6fc4e93f73
@ -402,7 +402,7 @@ const getStyles = (theme: GrafanaTheme2) => {
|
||||
content: css({
|
||||
label: 'panel-content',
|
||||
flexGrow: 1,
|
||||
contain: 'strict',
|
||||
contain: 'size layout',
|
||||
}),
|
||||
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,7 @@
|
||||
padding: $panel-padding;
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
contain: strict;
|
||||
contain: size layout;
|
||||
height: calc(100% - #{$panel-header-height});
|
||||
|
||||
&--no-padding {
|
||||
|
Loading…
Reference in New Issue
Block a user