Merge pull request #14822 from overleaf/mj-safari-table-size

[visual] Workaround for safari table size

GitOrigin-RevId: 937a606bf3b6093029e5a952c2a13a3f083ca74c
This commit is contained in:
Mathias Jakobsen 2023-09-13 11:12:49 +01:00 committed by Copybot
parent f4ebe98d91
commit 7d3c8fb78d
2 changed files with 2 additions and 1 deletions

View file

@ -333,7 +333,7 @@ export const Table: FC = () => {
onKeyDown={onKeyDown}
tabIndex={-1}
ref={tableRef}
style={{ width: `${tableWidth}ch` }}
style={{ width: `min(${tableWidth}ch, 95%)` }}
>
<colgroup>
<col width="20" />

View file

@ -126,6 +126,7 @@ export const tableGeneratorTheme = EditorView.baseTheme({
'.table-generator-table': {
'table-layout': 'fixed',
width: '95%',
'max-width': '95%',
margin: '0 auto',
cursor: 'default',