Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: layering of elements in insert table dialog (#5771)

Roman Sergeev6fab22135e27
diff --git a/packages/docs-ui/src/commands/operations/doc-create-table.operation.ts b/packages/docs-ui/src/commands/operations/doc-create-table.operation.ts
index 95ce515eba..e10ee49fcb 100644
--- a/packages/docs-ui/src/commands/operations/doc-create-table.operation.ts
+++ b/packages/docs-ui/src/commands/operations/doc-create-table.operation.ts
@@ -51,7 +51,7 @@ export const DocCreateTableOperation: ICommand = {
},
},
},
- width: 400,
+ width: 'auto',
title: { title: localeService.t('toolbar.table.insert') },
onConfirm: () => {
commandService.executeCommand(CreateDocTableCommand.id, tableCreateParams);
diff --git a/packages/docs-ui/src/views/table/create/TableCreate.tsx b/packages/docs-ui/src/views/table/create/TableCreate.tsx
index 89dd61d5e9..7e1c229671 100644
--- a/packages/docs-ui/src/views/table/create/TableCreate.tsx
+++ b/packages/docs-ui/src/views/table/create/TableCreate.tsx
@@ -49,7 +49,7 @@ export const DocCreateTableConfirm = ({
}, [tableCreateParams]);
return (
- <div className="univer-flex univer-items-center univer-justify-between">
+ <div className="univer-flex univer-items-center univer-justify-between univer-gap-2">
<div className="univer-flex univer-items-center univer-gap-2">
<span>{localeService.t('toolbar.table.rowCount')}</span>
<InputNumber