From 19182bacd00a6a8e275734fe6a2d31d3f3db5c5f Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 27 May 2026 18:50:52 +1000 Subject: [PATCH] [UI] Adjust table auto height (#12016) * [UI] Adjust table auto height - Better height selection - Tested against more edge cases * Fix comment --- src/frontend/src/tables/InvenTreeTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/tables/InvenTreeTable.tsx b/src/frontend/src/tables/InvenTreeTable.tsx index 993080d46b..fc0395ffce 100644 --- a/src/frontend/src/tables/InvenTreeTable.tsx +++ b/src/frontend/src/tables/InvenTreeTable.tsx @@ -814,9 +814,9 @@ export function InvenTreeTableInternal>({ }, [tableProps.onCellClick, tableProps.onRowClick, tableProps.modelType]); // When sticky headers are enabled, we adjust the maximum viewport height, - // based on the number of records being displayed (up to a maximum of 60vh) + // based on the number of records being displayed (up to a maximum of 80vh) const autoHeight = useMemo(() => { - const rows = Math.max(10, Math.min(tableState.records.length, 60)); + const rows = Math.min(80, 6 * Math.max(tableState.records.length, 3)); return `${rows}vh`; }, [tableState.records]);