[v11.3.x] Fix dashboards listing table appearing distorted (#96390)

Fix dashboards listing table appearing distorted (#96371)

* fix CSS

* approx height calc to account for header div

(cherry picked from commit 19c04168c3)
This commit is contained in:
Victor Marin
2024-11-14 09:37:27 +02:00
committed by GitHub
parent a6cdb48249
commit 700f59a0ea
3 changed files with 7 additions and 2 deletions
@@ -114,7 +114,7 @@ export function PluginDetailsBody({ plugin, queryParams, pageId }: Props): JSX.E
if (pageId === PluginTabIds.USAGE && pluginConfig) {
return (
<div>
<div className={styles.wrap}>
<PluginUsage plugin={pluginConfig?.meta} />
</div>
);
@@ -136,6 +136,10 @@ export function PluginDetailsBody({ plugin, queryParams, pageId }: Props): JSX.E
}
export const getStyles = (theme: GrafanaTheme2) => ({
wrap: css({
width: '100%',
height: '50vh',
}),
readme: css({
'& img': {
maxWidth: '100%',
@@ -115,6 +115,7 @@ export const getStyles = (theme: GrafanaTheme2) => {
// Needed due to block formatting context
tabContent: css({
paddingLeft: '5px',
width: '100%',
}),
};
};
@@ -88,7 +88,7 @@ export const getStyles = (theme: GrafanaTheme2) => {
return {
wrap: css`
width: 100%;
height: 100%;
height: 90%;
`,
info: css`
padding-bottom: 30px;