imported table width

This commit is contained in:
Salihu
2026-08-27 21:01:19 +01:00
parent cd9c166927
commit 24b81ab9af
@@ -85,7 +85,7 @@ export function normalizeTableColumnWidths(
firstRow.children('td, th').each(function () { firstRow.children('td, th').each(function () {
count += parseInt($(this).attr('colspan') || '1', 10) || 1; count += parseInt($(this).attr('colspan') || '1', 10) || 1;
}); });
if (count === 0) return; if (count < 5) return;
colWidths = new Array(count).fill(DEFAULT_IMPORT_COL_WIDTH_PX); colWidths = new Array(count).fill(DEFAULT_IMPORT_COL_WIDTH_PX);
} }