Skip to content

armgit / ente

Public Imported from GitHub
0

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

[space][web] Restore iPhone covers and defer friend sheet spinner

Anand Baburajanaf497ee15a11
diff --git a/web/apps/space/src/components/FriendProfileSheet.tsx b/web/apps/space/src/components/FriendProfileSheet.tsx
index 487ed7c46a..d98919a11c 100644
--- a/web/apps/space/src/components/FriendProfileSheet.tsx
+++ b/web/apps/space/src/components/FriendProfileSheet.tsx
@@ -337,7 +337,7 @@ export const FriendProfileSheet: React.FC<FriendProfileSheetProps> = ({
friendSpaceId={friend.spaceId ?? friend.id}
headerRef={headerRef}
isPreview={!expanded}
- showPostLoadingIndicator
+ showPostLoadingIndicator={expanded}
onBack={expanded ? onClose : dismiss}
username={friend.username}
/>
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index 281ab198cf..f3017d7e9f 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: profileCoverHeight,
+ height: `calc(${profileCoverHeight}px + var(--space-profile-safe-area-top))`,
insetInline: 0,
overflow: "hidden",
position: "absolute",
- top: "var(--space-profile-safe-area-top)",
+ top: 0,
width: "100%",
zIndex: 0,
}}
@@ -901,7 +901,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
aria-hidden
sx={{
background: profileCoverTopShadow,
- height: profileHeaderHeight + 8,
+ height: `calc(${profileHeaderHeight + 8}px + var(--space-profile-safe-area-top))`,
insetInline: 0,
pointerEvents: "none",
position: "absolute",
@@ -919,11 +919,11 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
bgcolor: "transparent",
border: 0,
cursor: "pointer",
- height: profileCoverHeight,
+ height: `calc(${profileCoverHeight}px + var(--space-profile-safe-area-top))`,
insetInline: 0,
p: 0,
position: "absolute",
- top: "var(--space-profile-safe-area-top)",
+ top: 0,
width: "100%",
zIndex: 2,
"&:focus-visible": {