mirror of
https://github.com/docmost/docmost.git
synced 2026-08-29 18:14:58 +08:00
fix imported table width
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
overflow-x: auto;
|
||||
& table {
|
||||
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);
|
||||
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(','));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user