From 87eb11c782d6513f1c1b9ffb0e13bd74df7c5108 Mon Sep 17 00:00:00 2001 From: Salihu Date: Thu, 27 Aug 2026 22:20:01 +0100 Subject: [PATCH] fix imported table width --- apps/client/src/features/editor/styles/table.css | 2 +- apps/server/src/integrations/import/utils/table-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/editor/styles/table.css b/apps/client/src/features/editor/styles/table.css index 7d9018a12..fbf563763 100644 --- a/apps/client/src/features/editor/styles/table.css +++ b/apps/client/src/features/editor/styles/table.css @@ -4,7 +4,7 @@ overflow-x: auto; & table { overflow-x: hidden; - min-width: 700px !important; + min-width: 100% !important; } } diff --git a/apps/server/src/integrations/import/utils/table-utils.ts b/apps/server/src/integrations/import/utils/table-utils.ts index 5daff479b..bd271d322 100644 --- a/apps/server/src/integrations/import/utils/table-utils.ts +++ b/apps/server/src/integrations/import/utils/table-utils.ts @@ -100,7 +100,7 @@ export function normalizeTableColumnWidths( const slice = colWidths.slice(col, col + colspan); col += colspan; if (slice.length === 0 || slice.every((w) => w === null)) return; - const values = slice.map((w) => (w == null ? 100 : w)); + const values = slice.map((w) => w ?? DEFAULT_IMPORT_COL_WIDTH_PX); cell.attr('colwidth', values.join(',')); }); });