Skip to content

armgit / ente

Public Imported from GitHub
0

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

[space][web] Refine likers sheet spacing

Anand Baburajan1818d170cbda
diff --git a/web/apps/space/src/components/PostLikes.tsx b/web/apps/space/src/components/PostLikes.tsx
index 9a293973f6..b8bb6f4e7b 100644
--- a/web/apps/space/src/components/PostLikes.tsx
+++ b/web/apps/space/src/components/PostLikes.tsx
@@ -224,7 +224,7 @@ export const SpacePostLikes = ({
display: "flex",
flexDirection: "column",
fontFamily: '"Inter Variable", Inter, sans-serif',
- height: "min(40dvh, 360px)",
+ height: 316,
left: 0,
m: 0,
maxHeight:
@@ -233,10 +233,11 @@ export const SpacePostLikes = ({
overflow: "hidden",
position: "fixed",
width: "100vw",
- pb: "calc(20px + env(safe-area-inset-bottom))",
+ pb: 0,
"@media (min-width: 600px)": {
borderRadius: "20px",
bottom: "auto",
+ height: "min(40dvh, 360px)",
left: "50%",
top: "50%",
transform: "translate(-50%, -50%)",
@@ -401,11 +402,12 @@ export const SpacePostLikes = ({
) : actors.length == 0 ? (
<Box
sx={{
- alignItems: "center",
color: spaceTextMuted,
- display: "flex",
- height: "100%",
- justifyContent: "center",
+ position: "absolute",
+ top: "calc(50% + 8px)",
+ left: 20,
+ right: 20,
+ transform: "translateY(-50%)",
textAlign: "center",
fontSize: 14,
}}
@@ -415,7 +417,13 @@ export const SpacePostLikes = ({
) : (
<Box
component="ul"
- sx={{ listStyle: "none", m: 0, p: 0 }}
+ sx={{
+ listStyle: "none",
+ m: 0,
+ p: 0,
+ pb: "calc(8px + env(safe-area-inset-bottom))",
+ "@media (min-width: 600px)": { pb: 0 },
+ }}
>
{actors.map((actor) => (
<LikeRow