From 77596dc8c76ee68a294a6961ce5329791f13c7b0 Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Wed, 4 Sep 2024 10:11:48 +0200 Subject: [PATCH] fix(AnalyticalTable): respect max-width in grow mode --- .../components/AnalyticalTable/hooks/useDynamicColumnWidths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/main/src/components/AnalyticalTable/hooks/useDynamicColumnWidths.ts b/packages/main/src/components/AnalyticalTable/hooks/useDynamicColumnWidths.ts index 1da53eb611a..20f18cdb2ea 100644 --- a/packages/main/src/components/AnalyticalTable/hooks/useDynamicColumnWidths.ts +++ b/packages/main/src/components/AnalyticalTable/hooks/useDynamicColumnWidths.ts @@ -393,7 +393,7 @@ const columns = (columns: TableInstance['columns'], { instance }: { instance: Ta return { ...column, - width: column.width ?? targetWidth, + width: column.width ?? Math.min(targetWidth, MAX_WIDTH), minWidth: column.minWidth ?? minHeaderWidth }; }