Skip to content

armgit / ente

Public Imported from GitHub
0

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

[space][web] Position profile covers below the iOS safe area

Anand Baburajan566cf81baa29
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index f3017d7e9f..281ab198cf 100644
--- a/web/apps/space/src/screens/ProfileScreen.tsx
+++ b/web/apps/space/src/screens/ProfileScreen.tsx
@@ -856,11 +856,11 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
: profileCoverBackground,
borderBottomLeftRadius: profileCoverRadius,
borderBottomRightRadius: profileCoverRadius,
- height: `calc(${profileCoverHeight}px + var(--space-profile-safe-area-top))`,
+ height: profileCoverHeight,
insetInline: 0,
overflow: "hidden",
position: "absolute",
- top: 0,
+ top: "var(--space-profile-safe-area-top)",
width: "100%",
zIndex: 0,
}}
@@ -901,7 +901,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
aria-hidden
sx={{
background: profileCoverTopShadow,
- height: `calc(${profileHeaderHeight + 8}px + var(--space-profile-safe-area-top))`,
+ height: profileHeaderHeight + 8,
insetInline: 0,
pointerEvents: "none",
position: "absolute",
@@ -919,11 +919,11 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
bgcolor: "transparent",
border: 0,
cursor: "pointer",
- height: `calc(${profileCoverHeight}px + var(--space-profile-safe-area-top))`,
+ height: profileCoverHeight,
insetInline: 0,
p: 0,
position: "absolute",
- top: 0,
+ top: "var(--space-profile-safe-area-top)",
width: "100%",
zIndex: 2,
"&:focus-visible": {