Skip to content

armgit / ente

Public Imported from GitHub
0

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

[space][web] Show first names in likes and reorder viewer actions (#14332)

Anand7e80272bb757
diff --git a/web/apps/space/src/components/FileViewer.tsx b/web/apps/space/src/components/FileViewer.tsx
index 3619b862e7..acf9c6be65 100644
--- a/web/apps/space/src/components/FileViewer.tsx
+++ b/web/apps/space/src/components/FileViewer.tsx
@@ -2908,6 +2908,12 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
justifyContent: "flex-end",
}}
>
+ {canComment && (
+ <SpaceCommentsButton
+ count={commentCount}
+ onClick={() => setCommentsOpen(true)}
+ />
+ )}
{showPostLikes &&
activePhoto.spaceId &&
activePhoto.postId && (
@@ -2924,12 +2930,6 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
}
/>
)}
- {canComment && (
- <SpaceCommentsButton
- count={commentCount}
- onClick={() => setCommentsOpen(true)}
- />
- )}
</Box>
) : null}
</Box>
diff --git a/web/apps/space/src/components/PostLikes.tsx b/web/apps/space/src/components/PostLikes.tsx
index b8bb6f4e7b..26bf258a25 100644
--- a/web/apps/space/src/components/PostLikes.tsx
+++ b/web/apps/space/src/components/PostLikes.tsx
@@ -20,6 +20,7 @@ import {
spaceTextMuted,
} from "styles/colors";
import { spaceTouchTargetSize } from "styles/touch-targets";
+import { firstNameFrom } from "utils/display";
const LikeRow = ({
actor,
@@ -75,7 +76,7 @@ const LikeRow = ({
overflowWrap: "anywhere",
}}
>
- {actor.fullName.trim() || actor.username}
+ {firstNameFrom(actor.fullName.trim() || actor.username)}
</Box>
<HugeiconsIcon
aria-hidden