admin: nicer dialogs

Massimo Melina committed Mar 7, 2024 at 19:35 UTC d85526aee0ed50b37980d7492e97d06b72333489
1 file changed +2
admin/src/dialog.ts
+2
@@ -61,6 +61,7 @@ dialogsDefaults.Container = function Container(d: DialogOptions) {
61 sx: {
62 p: d.padding ? 1 : 0, pt: '16px !important', overflow: 'initial',
63 display: 'flex', flexDirection: 'column', justifyContent: 'center',
64 + alignItems: 'center',
65 ...sx,
66 }
67 }, h(d.Content) )
@@ -93,6 +94,7 @@ export function alertDialog(msg: ReactElement | string | Error, options?: AlertT
94 icon: opt.icon ?? h(type2ico[type], { color: type }),
95 onClose: promise.resolve,
96 title: _.upperFirst(type),
97 + dialogProps: { fullScreen: false },
98 ...rest,
99 Content() {
100 return h(Box, { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 1 },