diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 25c418ad..2f2a43b8 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -311,7 +311,7 @@ const Memo: React.FC = (props: Props) => { )} - + {commentRelations.length} diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx index 6891e358..32ee194e 100644 --- a/web/src/pages/MemoDetail.tsx +++ b/web/src/pages/MemoDetail.tsx @@ -1,4 +1,4 @@ -import { Select, Tooltip, Option, IconButton, Divider } from "@mui/joy"; +import { Select, Tooltip, Option, IconButton } from "@mui/joy"; import copy from "copy-to-clipboard"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; @@ -108,8 +108,8 @@ const MemoDetail = () => { return ( <> -
-
+
+

{systemStatus.customizedProfile.name}

@@ -186,16 +186,16 @@ const MemoDetail = () => {
{comments.length === 0 ? ( -
+

No comments

) : ( <> -
- +
+ Comments - ({comments.length}) + ({comments.length})
{comments.map((comment) => ( @@ -205,15 +205,12 @@ const MemoDetail = () => { {/* Only show comment editor when user login */} {currentUser && ( - <> - {comments.length === 0 && } - fetchMemoComments()} - /> - + fetchMemoComments()} + /> )}