VersionHistoryTable: Fix overflow issue with long notes (#106284)

This commit is contained in:
kay delaney
2025-06-05 14:41:43 +01:00
committed by GitHub
parent 82549ea8b3
commit 6fd66dd690
@@ -1,4 +1,4 @@
import { css } from '@emotion/css';
import { css, cx } from '@emotion/css';
import * as React from 'react';
import { GrafanaTheme2 } from '@grafana/data';
@@ -22,7 +22,7 @@ export const VersionHistoryTable = ({ versions, canCompare, onCheck, onRestore }
const { t } = useTranslate();
return (
<div className={styles.margin}>
<table className="filter-table">
<table className={cx('filter-table', styles.table)}>
<thead>
<tr>
<th className="width-4"></th>
@@ -106,5 +106,10 @@ function getStyles(theme: GrafanaTheme2) {
margin: css({
marginBottom: theme.spacing(4),
}),
table: css({
td: {
whiteSpace: 'normal !important',
},
}),
};
}