VersionHistoryTable: Fix overflow issue with long notes (#106284)
This commit is contained in:
+7
-2
@@ -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',
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user