π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refine Space unseen post badges and viewer counter
Anand Baburajan1579722c9143
diff --git a/web/apps/space/src/components/FileViewer.tsx b/web/apps/space/src/components/FileViewer.tsxindex 81cd0cbd42..82c1a41d2f 100644--- a/web/apps/space/src/components/FileViewer.tsx+++ b/web/apps/space/src/components/FileViewer.tsx@@ -1436,32 +1436,25 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({aria-label={`Post ${activePhotoIndex + 1} of ${viewerPhotos.length}`}sx={{alignItems: "center",- bgcolor: controlBackground,+ bgcolor: "#F63A3A",borderRadius: "999px",boxSizing: "border-box",+ color: "#FFFFFF",display: "inline-flex",fontFamily:'"Inter Variable", Inter, sans-serif',fontSize: 12,fontVariantNumeric: "tabular-nums",fontWeight: 700,- gap: "6px",- height: 28,+ height: 24,justifyContent: "center",lineHeight: "16px",minWidth: 48,- px: "9px",+ px: "10px",+ whiteSpace: "nowrap",}}>- <Box component="span" sx={{ color: textBase }}>- {activePhotoIndex + 1}- </Box>- <Box component="span" sx={{ color: textTertiary }}>- /- </Box>- <Box component="span" sx={{ color: textBase }}>- {viewerPhotos.length}- </Box>+ {activePhotoIndex + 1} of {viewerPhotos.length}</Box>)}{canManagePost && !isCaptionEditing && (diff --git a/web/apps/space/src/components/PostUnreadBadge.tsx b/web/apps/space/src/components/PostUnreadBadge.tsxindex 9f56914381..f24589dbfb 100644--- a/web/apps/space/src/components/PostUnreadBadge.tsx+++ b/web/apps/space/src/components/PostUnreadBadge.tsx@@ -5,6 +5,7 @@ interface SpacePostBadgeProps extends React.PropsWithChildren {backgroundColor: string;color: string;placement?: "center" | "top-right";+ variant?: "default" | "unread";}export const SpacePostBadge: React.FC<SpacePostBadgeProps> = ({@@ -12,6 +13,7 @@ export const SpacePostBadge: React.FC<SpacePostBadgeProps> = ({children,color,placement = "top-right",+ variant = "default",}) => (<Boxcomponent="span"@@ -42,6 +44,13 @@ export const SpacePostBadge: React.FC<SpacePostBadgeProps> = ({transform: "translate(-50%, -50%)",}: { right: "10%", top: "10%" }),+ ...(variant == "unread" && {+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.15)",+ fontSize: 12,+ height: 24,+ minWidth: 24,+ px: "6px",+ }),}}>{children}@@ -51,7 +60,7 @@ export const SpacePostBadge: React.FC<SpacePostBadgeProps> = ({export const SpacePostUnreadBadge: React.FC<{ count: number }> = ({count,}) => (- <SpacePostBadge backgroundColor="#F63A3A" color="#FFFFFF">+ <SpacePostBadge backgroundColor="#F63A3A" color="#FFFFFF" variant="unread">{count}</SpacePostBadge>);