π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refine Space feed card styling
Anand Baburajanfa02c612e0de
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsxindex da7ecf6352..415dec8c4f 100644--- a/web/apps/space/src/screens/HomeScreen.tsx+++ b/web/apps/space/src/screens/HomeScreen.tsx@@ -54,18 +54,21 @@ import { thumbHashDataURLFromBase64 } from "utils/thumbhash";const homeBackground = spaceAppBackgroundColor;const green = "#08C225";+const feedCardBackground = "#2C2C2E";const feedAccentBackground = "#263D2C";const feedAccentBackgroundHover = "#2C4B32";-const feedActionBackground = "#242426";-const feedActionBackgroundHover = "#303033";-const feedLikeForeground = "#D1D1D6";-const feedTimestampForeground = "#8E8E93";+const feedActionBackground = "#3A3A3E";+const feedActionBackgroundHover = "#47474C";+const feedLikeForeground = "#E4E4E8";+const feedTimestampForeground = "#A7A7AE";const feedSkeletonElementBackground = spaceSurfaceHover;const textBase = spaceText;const textSecondary = spaceTextMuted;const dangerColor = "#F63A3A";-const feedAvatarSize = 24;+const feedAvatarSize = 25;const feedLikeActionSize = spaceTouchTargetSize;+const feedCardRadius = 16;+const feedFooterInset = 8;const feedActionIconSize = 20;const feedHorizontalPadding = "16px";const minimumFeedPhotoFrameAspectRatio = 3 / 4;@@ -343,7 +346,7 @@ class FeedMotionList extends React.Component<FeedMotionListProps> {sx={{boxSizing: "border-box",minWidth: 0,- pb: "36px",+ pb: "28px",position: "relative",width: "100%",}}@@ -860,6 +863,8 @@ const FeedItem: React.FC<FeedItemProps> = ({ref={rootRef}component="article"sx={{+ bgcolor: feedCardBackground,+ borderRadius: `${feedCardRadius}px`,boxSizing: "border-box",display: "flex",flexDirection: "column",@@ -878,8 +883,9 @@ const FeedItem: React.FC<FeedItemProps> = ({gap: "8px",gridTemplateColumns: `${feedAvatarSize}px minmax(0, 1fr) fit-content(50%)`,lineHeight: "20px",- mb: "10px",- px: "4px",+ minHeight: 52,+ px: "12px",+ py: "4px",}}><Box@@ -888,7 +894,7 @@ const FeedItem: React.FC<FeedItemProps> = ({aria-label={authorProfileLabel}onClick={openAuthor}sx={{- alignItems: "flex-end",+ alignItems: "center",appearance: "none",bgcolor: "transparent",border: 0,@@ -897,7 +903,6 @@ const FeedItem: React.FC<FeedItemProps> = ({flexShrink: 0,height: spaceTouchTargetSize,justifyContent: "center",- mt: `${feedAvatarSize - spaceTouchTargetSize}px`,mx: `${(feedAvatarSize - spaceTouchTargetSize) / 2}px`,overflow: "visible",p: 0,@@ -914,7 +919,6 @@ const FeedItem: React.FC<FeedItemProps> = ({sx={{bgcolor: "rgba(255, 255, 255, 0.2)",borderRadius: "50%",- bottom: 0,height: feedAvatarSize,width: feedAvatarSize,position: "absolute",@@ -1068,7 +1072,9 @@ const FeedItem: React.FC<FeedItemProps> = ({sx={{aspectRatio: `${feedPhotoFrameDimensions.width} / ${feedPhotoFrameDimensions.height}`,bgcolor: "transparent",- borderRadius: "16px",+ borderRadius: showFooter+ ? 0+ : `0 0 ${feedCardRadius}px ${feedCardRadius}px`,maxWidth: "100%",minWidth: 0,overflow: "hidden",@@ -1194,10 +1200,10 @@ const FeedItem: React.FC<FeedItemProps> = ({alignItems: "center",boxSizing: "border-box",display: "grid",- gap: "6px",+ gap: "8px",gridTemplateColumns: "minmax(0, 1fr) auto",minHeight: feedLikeActionSize,- mt: "8px",+ p: `${feedFooterInset}px`,width: "100%",}}>@@ -1211,8 +1217,8 @@ const FeedItem: React.FC<FeedItemProps> = ({appearance: "none",bgcolor: feedActionBackground,border: 0,- borderRadius: "22px",- color: "#B0B0B8",+ borderRadius: "999px",+ color: "#D0D0D6",cursor: canOpenPhoto ? "pointer" : "default",fontFamily: '"Inter Variable", Inter, sans-serif',fontSize: 14,@@ -1810,7 +1816,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({minWidth: 0,pb: "calc(env(safe-area-inset-bottom) + 112px)",px: feedHorizontalPadding,- pt: showFeedCards ? "28px" : "8px",+ pt: showFeedCards ? "20px" : "8px",width: "100%",}}>