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.

feat(design): allow customizing the `Dialog` component's width beyond predefined limits (#5612)

白熱1f9c781c5c48
diff --git a/packages/design/src/components/dialog/Dialog.tsx b/packages/design/src/components/dialog/Dialog.tsx
index 1569f10c09..a2bc2c7a23 100644
--- a/packages/design/src/components/dialog/Dialog.tsx
+++ b/packages/design/src/components/dialog/Dialog.tsx
@@ -322,6 +322,7 @@ export function Dialog(props: IDialogProps) {
style={{
...style,
width: width ? (typeof width === 'number' ? `${width}px` : width) : undefined,
+ maxWidth: width ? 'initial' : undefined,
...(draggable
? {
position: 'absolute',