Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Set fullWidth on the alert dialog scenario

Manav Rathi9c35c28e90a7
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index a0f1ca1536..68f8732d8d 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -1,7 +1,7 @@
import { clientPackageName, staticAppTitle } from "@/base/app";
import { CustomHead } from "@/base/components/Head";
import type { MiniDialogAttributes } from "@/base/components/MiniDialog";
-import { DialogBoxV2 } from "@/base/components/MiniDialog";
+import { MiniDialog } from "@/base/components/MiniDialog";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { AppNavbar } from "@/base/components/Navbar";
import { setupI18n } from "@/base/i18n";
@@ -307,7 +307,7 @@ export default function App({ Component, pageProps }: AppProps) {
onClose={closeMessageDialog}
attributes={dialogMessage}
/>
- <DialogBoxV2
+ <MiniDialog
sx={{ zIndex: 1600 }}
open={dialogBoxV2View}
onClose={closeDialogBoxV2}
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 448e19a3ff..598c45594a 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -130,6 +130,7 @@ export function MiniDialog({
<Dialog
open={open}
onClose={handleClose}
+ fullWidth
PaperProps={{
...PaperProps,
sx: {