@samitouri / QOSami-HFS / commits / 668eedca

admin: nicer toasts on mobile

Massimo Melina committed Jul 16, 2023 at 01:41 UTC 668eedca42fb3f45afb2095435ba289d2e3d0038
1 file changed +1
admin/src/dialog.ts
+1
@@ -216,6 +216,7 @@ export function toast(msg: string | ReactElement, type: AlertType | ReactElement
216 const { close } = newDialog({
217 Content,
218 dialogProps: {
219 + fullScreen: false,
220 PaperProps: {
221 sx: { transition: `opacity ${ms}ms ease-in` },
222 ref(x: HTMLElement) { // we need to set opacity later, to trigger transition