fix: admin: first dialog on mobile was not full screen

Massimo Melina committed Jul 16, 2023 at 18:39 UTC 86e04edba80969bb0388b2735087bcb54574a4bd
1 file changed -1
admin/src/dialog.ts
-1
@@ -44,7 +44,6 @@ dialogsDefaults.Container = function Container(d:DialogOptions) {
44 const titleSx = useDialogBarColors() // don't move this hook inside the return. When closing+showing at once it throws about rendering with fewer hooks.
45 d = { ...dialogsDefaults, ...d }
46 const { sx, root, ...rest } = d.dialogProps||{}
47 - dialogsDefaults.dialogProps = { fullScreen: mobile, sx: { overflow:'initial' } }
47 return h(MuiDialog, {
48 open: true,
49 maxWidth: 'lg',