Skip to content

armgit / ente

Public Imported from GitHub
0

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

Adjust Space sheet title spacing and likes height

Anand Baburajan82f5dce5f554
diff --git a/web/apps/space/src/components/PostComments.tsx b/web/apps/space/src/components/PostComments.tsx
index 33bf91df12..a8a50dfcdc 100644
--- a/web/apps/space/src/components/PostComments.tsx
+++ b/web/apps/space/src/components/PostComments.tsx
@@ -1085,7 +1085,7 @@ export const PostComments: React.FC<{
alignItems: "center",
justifyContent: "center",
px: 2,
- pb: 1,
+ pb: 2,
flexShrink: 0,
position: "relative",
}}
@@ -1347,7 +1347,7 @@ export const PostComments: React.FC<{
alignItems: "center",
justifyContent: "center",
px: 2,
- pb: 1,
+ pb: 2,
flexShrink: 0,
position: "relative",
}}
diff --git a/web/apps/space/src/components/PostLikes.tsx b/web/apps/space/src/components/PostLikes.tsx
index f4392b2f14..42d50ccb8c 100644
--- a/web/apps/space/src/components/PostLikes.tsx
+++ b/web/apps/space/src/components/PostLikes.tsx
@@ -221,10 +221,14 @@ export const SpacePostLikes = ({
boxShadow: "none",
boxSizing: "border-box",
color: spaceText,
+ display: "flex",
+ flexDirection: "column",
fontFamily: '"Inter Variable", Inter, sans-serif',
+ height: "min(72dvh, 640px)",
left: 0,
m: 0,
- maxHeight: "min(560px, calc(100dvh - 64px))",
+ maxHeight:
+ "calc(100dvh - env(safe-area-inset-top) - 16px)",
maxWidth: "none",
overflow: "hidden",
position: "fixed",
@@ -331,7 +335,7 @@ export const SpacePostLikes = ({
lineHeight: "24px",
m: 0,
px: 2,
- pb: 1,
+ pb: 2,
textAlign: "center",
}}
>
@@ -339,7 +343,7 @@ export const SpacePostLikes = ({
</Box>
<Box
sx={{
- height: "min(224px, 40dvh)",
+ flex: "1 1 auto",
overflowY: "auto",
overscrollBehaviorY: "contain",
px: "20px",