diff --git a/services/web/frontend/js/features/source-editor/components/table-generator/table.tsx b/services/web/frontend/js/features/source-editor/components/table-generator/table.tsx index 25be28c04b..d3fd0990ae 100644 --- a/services/web/frontend/js/features/source-editor/components/table-generator/table.tsx +++ b/services/web/frontend/js/features/source-editor/components/table-generator/table.tsx @@ -333,7 +333,7 @@ export const Table: FC = () => { onKeyDown={onKeyDown} tabIndex={-1} ref={tableRef} - style={{ width: `${tableWidth}ch` }} + style={{ width: `min(${tableWidth}ch, 95%)` }} > diff --git a/services/web/frontend/js/features/source-editor/extensions/visual/table-generator.ts b/services/web/frontend/js/features/source-editor/extensions/visual/table-generator.ts index dbcd1f204e..b1a68110e9 100644 --- a/services/web/frontend/js/features/source-editor/extensions/visual/table-generator.ts +++ b/services/web/frontend/js/features/source-editor/extensions/visual/table-generator.ts @@ -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',