mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 02:25:01 +08:00
fix imported table width
This commit is contained in:
@@ -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(','));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user