diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx index 197ce808da..bf5408ca70 100644 --- a/web/packages/base/components/MiniDialog.tsx +++ b/web/packages/base/components/MiniDialog.tsx @@ -98,6 +98,7 @@ export const AttributedMiniDialog: React.FC< React.PropsWithChildren > = ({ open, onClose, attributes, children, ...props }) => { const [loading, setLoading] = useState(false); + if (!attributes) { return <>; } @@ -118,47 +119,48 @@ export const AttributedMiniDialog: React.FC< PaperProps={{ ...PaperProps, sx: { - padding: "8px 12px", maxWidth: "360px", ...PaperProps?.sx, }, }} {...rest} > - - - {attributes.icon && ( - svg": { - fontSize: "32px", - }, - }} - > - {attributes.icon} - - )} - {attributes.title && ( - - {attributes.title} - - )} - {children || - (attributes?.content && ( - - {attributes.content} - - ))} - + {attributes.icon && ( + svg": { + fontSize: "32px", + }, + color: "text.muted", + padding: "20px 16px 0px 16px", + }} + > + {attributes.icon} + + )} + {attributes.title && ( + + {attributes.title} + + )} + + {attributes.content && ( + + {attributes.content} + + )} + {children} {(attributes.proceed || attributes.close) && ( {attributes.proceed && ( )} - + ); };