Table: Avoid overflow issues in Safari 26 (#111858)
This commit is contained in:
@@ -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%' }),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user