fix imported table width

This commit is contained in:
Salihu
2026-08-27 22:20:01 +01:00
parent e175242748
commit 87eb11c782
2 changed files with 2 additions and 2 deletions
@@ -4,7 +4,7 @@
overflow-x: auto; overflow-x: auto;
& table { & table {
overflow-x: hidden; overflow-x: hidden;
min-width: 700px !important; min-width: 100% !important;
} }
} }
@@ -100,7 +100,7 @@ export function normalizeTableColumnWidths(
const slice = colWidths.slice(col, col + colspan); const slice = colWidths.slice(col, col + colspan);
col += colspan; col += colspan;
if (slice.length === 0 || slice.every((w) => w === null)) return; 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(',')); cell.attr('colwidth', values.join(','));
}); });
}); });