Skip to content

armgit / ente

Public Imported from GitHub
0

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

Make single-photo profile rows full width

Anand Baburajan0de98ac7d53b
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index 9fa3dcf3ce..c5ca9f2b16 100644
--- a/web/apps/space/src/screens/ProfileScreen.tsx
+++ b/web/apps/space/src/screens/ProfileScreen.tsx
@@ -1874,12 +1874,17 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
sx={{
display: "grid",
gap: adaptivePhotoMasonryGap,
- gridTemplateColumns: tiles
- .map(
- ({ aspectRatio }) =>
- `minmax(0, ${aspectRatio}fr)`,
- )
- .join(" "),
+ gridTemplateColumns:
+ tiles.length == 1
+ ? "minmax(0, 1fr)"
+ : tiles
+ .map(
+ ({
+ aspectRatio,
+ }) =>
+ `minmax(0, ${aspectRatio}fr)`,
+ )
+ .join(" "),
minWidth: 0,
}}
>