Skip to content

armgit / ente

Public Imported from GitHub
0

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

Align Space likes controls and sheet headers

Anand Baburajane84b04616f07
diff --git a/web/apps/space/src/components/FriendProfileSheet.tsx b/web/apps/space/src/components/FriendProfileSheet.tsx
index d98919a11c..b15f07172e 100644
--- a/web/apps/space/src/components/FriendProfileSheet.tsx
+++ b/web/apps/space/src/components/FriendProfileSheet.tsx
@@ -17,7 +17,7 @@ interface FriendProfileSheetProps {
}
type SheetSnap = "collapsed" | "expanded" | "closed";
-const handleHeight = 28;
+const handleHeight = 24;
export const FriendProfileSheet: React.FC<FriendProfileSheetProps> = ({
expanded,
diff --git a/web/apps/space/src/components/MessageReactionPicker.tsx b/web/apps/space/src/components/MessageReactionPicker.tsx
index 0f16a19d6f..902a39bcfe 100644
--- a/web/apps/space/src/components/MessageReactionPicker.tsx
+++ b/web/apps/space/src/components/MessageReactionPicker.tsx
@@ -322,7 +322,7 @@ export const MessageReactionPicker: React.FC<{
...buttonSx,
borderRadius: "999px",
cursor: isDragging ? "grabbing" : "grab",
- height: 32,
+ height: 24,
touchAction: "none",
width: "100%",
"&:hover": { bgcolor: "transparent" },
diff --git a/web/apps/space/src/components/PostComments.tsx b/web/apps/space/src/components/PostComments.tsx
index 6d76cdd82f..082087c953 100644
--- a/web/apps/space/src/components/PostComments.tsx
+++ b/web/apps/space/src/components/PostComments.tsx
@@ -1046,7 +1046,7 @@ export const PostComments: React.FC<{
cursor: isDragging ? "grabbing" : "grab",
display: "flex",
justifyContent: "center",
- minHeight: 32,
+ minHeight: 24,
flexShrink: 0,
touchAction: "none",
width: "100%",
@@ -1331,7 +1331,7 @@ export const PostComments: React.FC<{
<Box
sx={{
position: "absolute",
- inset: "32px 0 0",
+ inset: "24px 0 0",
bgcolor: spaceDialogBackground,
display: "flex",
flexDirection: "column",
diff --git a/web/apps/space/src/components/PostLikes.tsx b/web/apps/space/src/components/PostLikes.tsx
index ecc5e3800d..f4392b2f14 100644
--- a/web/apps/space/src/components/PostLikes.tsx
+++ b/web/apps/space/src/components/PostLikes.tsx
@@ -13,6 +13,8 @@ import {
} from "services/space";
import { spaceActivityRowSx } from "styles/activity-list";
import {
+ spaceControlBackground,
+ spaceControlBackgroundHover,
spaceDialogBackground,
spaceText,
spaceTextMuted,
@@ -156,21 +158,22 @@ export const SpacePostLikes = ({
onClick={onOpen}
sx={{
alignItems: "center",
- alignSelf: "flex-end",
- bgcolor: "transparent",
+ bgcolor: spaceControlBackground,
border: 0,
borderRadius: "24px",
- color: spaceTextMuted,
+ color: spaceText,
cursor: "pointer",
display: "flex",
- gap: "8px",
- minHeight: spaceTouchTargetSize,
- minWidth: 64,
- px: "14px",
- transform: "translate(8px, 8px)",
- fontFamily: '"Inter Variable", Inter, sans-serif',
+ flex: "0 0 auto",
+ font: "inherit",
fontSize: 14,
- fontWeight: 600,
+ fontWeight: 500,
+ gap: 1,
+ height: 48,
+ justifyContent: "center",
+ minWidth: 68,
+ px: 1.5,
+ "&:hover": { bgcolor: spaceControlBackgroundHover },
"&:focus-visible": {
outline: "2px solid #08C225",
outlineOffset: 2,
@@ -179,21 +182,10 @@ export const SpacePostLikes = ({
>
<HugeiconsIcon
icon={FavouriteIcon}
- size={20}
+ size={28}
strokeWidth={1.8}
/>
- <Box
- component="span"
- sx={{
- flexShrink: 0,
- fontVariantNumeric: "tabular-nums",
- height: "20px",
- lineHeight: "20px",
- textAlign: "left",
- whiteSpace: "nowrap",
- width: "1ch",
- }}
- >
+ <Box component="span" sx={{ color: "#C4C4C8" }}>
{displayedLikeCount ?? ""}
</Box>
</Box>
@@ -308,7 +300,7 @@ export const SpacePostLikes = ({
cursor: isDragging ? "grabbing" : "grab",
display: "flex",
flexShrink: 0,
- height: spaceTouchTargetSize,
+ height: 24,
justifyContent: "center",
p: 0,
touchAction: "none",
@@ -330,6 +322,21 @@ export const SpacePostLikes = ({
/>
</Box>
)}
+ <Box
+ component="h2"
+ sx={{
+ flexShrink: 0,
+ fontSize: 16,
+ fontWeight: 600,
+ lineHeight: "24px",
+ m: 0,
+ px: 2,
+ pb: 1,
+ textAlign: "center",
+ }}
+ >
+ Likes
+ </Box>
<Box
sx={{
height: "min(224px, 40dvh)",