Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Scale empty state on narrow screens

AswinAsok5e13f1075500
diff --git a/web/apps/photos/src/components/gallery/AlbumEmptyState.tsx b/web/apps/photos/src/components/gallery/AlbumEmptyState.tsx
index d307b4067a..f28194b52a 100644
--- a/web/apps/photos/src/components/gallery/AlbumEmptyState.tsx
+++ b/web/apps/photos/src/components/gallery/AlbumEmptyState.tsx
@@ -3,22 +3,48 @@ import { t } from "i18next";
export function AlbumEmptyState() {
return (
- <Stack sx={{ alignItems: "center", gap: "30.31px", px: 3, py: 3 }}>
+ <Stack
+ sx={{
+ alignItems: "center",
+ gap: "30.31px",
+ width: "100%",
+ minWidth: 0,
+ px: { xs: 0, sm: 3 },
+ py: 3,
+ }}
+ >
<Box
aria-hidden
- sx={{ position: "relative", width: 265.209, height: 215.196 }}
+ sx={{
+ position: "relative",
+ width: "100%",
+ maxWidth: 265.209,
+ aspectRatio: "265.209 / 215.196",
+ }}
>
<Box
component="img"
src="/images/empty-album/background.svg"
alt=""
- sx={{ position: "absolute", left: -5.385, top: 10.765 }}
+ sx={{
+ position: "absolute",
+ left: "-2.0305%",
+ top: "5.0024%",
+ width: "104.061%",
+ height: "auto",
+ }}
/>
<Box
component="img"
src="/images/empty-album/duck.svg"
alt=""
- sx={{ position: "absolute", left: 21.54, top: 23.22 }}
+ sx={{
+ position: "absolute",
+ left: "8.1219%",
+ top: "10.79%",
+ width: "81.3604%",
+ height: "auto",
+ }}
/>
</Box>
<Typography