Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(DownloadStatusNotification):fixed-responsive-size

Aswin Asokf78b2853e274
diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
index 3004c21dab..d3e05e2fac 100644
--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx
+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
@@ -188,7 +188,7 @@ export const DownloadStatusNotifications: React.FC<
<Notification
key={group.id}
horizontal="left"
- sx={{
+ sx={(theme) => ({
"&&": { bottom: `${index * 80 + 20}px` },
width: "min(400px, 100vw)",
borderRadius: "20px",
@@ -201,7 +201,21 @@ export const DownloadStatusNotifications: React.FC<
height: "40px",
"& svg": { fontSize: "22px" },
},
- }}
+ [theme.breakpoints.down("sm")]: {
+ "&&": { bottom: `${index * 70 + 16}px` },
+ width: "min(340px, calc(100vw - 16px))",
+ borderRadius: "16px",
+ "& .MuiButton-root": {
+ borderRadius: "16px",
+ padding: "12px 12px 12px 16px",
+ },
+ "& .MuiIconButton-root": {
+ width: "36px",
+ height: "36px",
+ "& svg": { fontSize: "20px" },
+ },
+ },
+ })}
open={true}
onClose={createOnClose(group)}
keepOpenOnClick