[release-11.6.4] fix: percentage-based heights were not applied in updated scrollable iframe container (#107188)

fix: percentage-based heights were not applied in updated scrollable iframe container
This commit is contained in:
Paul Marbach
2025-07-10 10:04:38 -04:00
committed by GitHub
parent aca3326224
commit 50c6f1927a
+6 -2
View File
@@ -1,4 +1,4 @@
import { css } from '@emotion/css';
import { css, cx } from '@emotion/css';
import DangerouslySetHtmlContent from 'dangerously-set-html-content';
import { useState } from 'react';
import { useDebounce } from 'react-use';
@@ -56,7 +56,7 @@ export function TextPanel(props: Props) {
<DangerouslySetHtmlContent
allowRerender
html={processed.content}
className="markdown-html"
className={cx('markdown-html', styles.markdownHtml)}
data-testid="TextPanel-converted-content"
/>
</ScrollContainer>
@@ -103,5 +103,9 @@ const getStyles = (theme: GrafanaTheme2) => ({
containStrict: css({
contain: 'strict',
height: '100%',
display: 'flex',
}),
markdownHtml: css({
height: '100%',
}),
});