fix: dialog.className on admin wasn't applied
Massimo Melina committed
Aug 20, 2023 at 15:23 UTC
afedbbeffc8ac829e73d38272552140657119a61
2 files changed
+8
-2
admin/src/dialog.ts
+2
-1
@@ -53,6 +53,7 @@ dialogsDefaults.Container = function Container(d:DialogOptions) {
53
fullScreen: mobile,
54
...rest,
55
...root,
56
+ className: d.className,
57
onClose: ()=> closeDialog(),
58
},
59
d.title && h(DialogTitle, {
@@ -98,7 +99,7 @@ export function alertDialog(msg: ReactElement | string | Error, options?: AlertT
99
100
const promise = pendingPromise()
101
const dialog = newDialog({
101
- className: 'dialog-alert-' + type,
102
+ className: 'dialog-alert dialog-alert-' + type,
103
icon: '!',
104
onClose: promise.resolve,
105
...rest,
admin/src/index.css
+6
-1
@@ -25,7 +25,12 @@ code {
25
background-color: #8882;
26
}
27
28
-ol, ul { margin-top: .2em }
28
+ol, ul { margin-top: .2em; padding-left: 1.5em; }
29
+
30
+.dialog-alert .MuiDialogContent-root {
31
+ max-width: 45em;
32
+ padding: .5em 1em;
33
+}
34
35
.animated-dashed-line {
36
width: 100%;