Table: Avoid overflow issues in Safari 26 (#111858)

This commit is contained in:
Paul Marbach
2025-09-30 17:25:32 -04:00
committed by GitHub
parent 174e924e15
commit 73cf4b0895
2 changed files with 8 additions and 1 deletions
@@ -791,7 +791,7 @@ export function TableNG(props: TableNGProps) {
const displayedEnd = pageRangeEnd;
const numRows = sortedRows.length;
return (
let rendered = (
<>
<DataGrid<TableRow, TableSummaryRow>
{...commonDataGridProps}
@@ -879,6 +879,12 @@ export function TableNG(props: TableNGProps) {
)}
</>
);
if (IS_SAFARI_26) {
rendered = <div className={styles.safariWrapper}>{rendered}</div>;
}
return rendered;
}
/**
@@ -123,6 +123,7 @@ export const getGridStyles = (theme: GrafanaTheme2, enablePagination?: boolean,
padding: theme.spacing(0, 1, 0, 2),
}),
menuItem: css({ maxWidth: '200px' }),
safariWrapper: css({ contain: 'strict', height: '100%' }),
};
};