+
+ {t("common.relations")}
+ (Beta)
+
-
- {t("common.relations")}
- (Beta)
-
- )}
-
-
-
{t("common.created-at")}
-
{memo.createTime ? timestampDate(memo.createTime).toLocaleString() : "-"}
+ )}
- {!isEqual(memo.createTime, memo.updateTime) && (
-
-
{t("common.last-updated-at")}
-
{memo.updateTime ? timestampDate(memo.updateTime).toLocaleString() : "-"}
-
- )}
-
- {hasSpecialProperty && (
-
-
{t("common.properties")}
-
- {property.hasLink && (
-
-
- {t("memo.links")}
-
- )}
- {property.hasTaskList && (
-
-
- {t("memo.to-do")}
-
- )}
- {property.hasCode && (
-
-
- {t("memo.code")}
-
- )}
-
-
- )}
-
- {memo.tags.length > 0 && (
-
-
-
{t("common.tags")}
-
({memo.tags.length})
-
-
- {memo.tags.map((tag) => (
-
-
- {tag}
-
- ))}
-
-
- )}
+
+
{t("common.created-at")}
+
{memo.createTime ? timestampDate(memo.createTime).toLocaleString() : "—"}
+
+ {!isEqual(memo.createTime, memo.updateTime) && (
+
+
{t("common.last-updated-at")}
+
{memo.updateTime ? timestampDate(memo.updateTime).toLocaleString() : "—"}
+
+ )}
+
+ {hasSpecialProperty && (
+
+
{t("common.properties")}
+
+ {property.hasLink && (
+
+
+ {t("memo.links")}
+
+ )}
+ {property.hasTaskList && (
+
+
+ {t("memo.to-do")}
+
+ )}
+ {property.hasCode && (
+
+
+ {t("memo.code")}
+
+ )}
+
+
+ )}
+
+ {memo.tags.length > 0 && (
+
+
+ {t("common.tags")}
+ ({memo.tags.length})
+
+
+ {memo.tags.map((tag) => (
+
+
+ {tag}
+
+ ))}
+
+
+ )}
);
};
diff --git a/web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx b/web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
index 3ffc92ed1..7d2b502bb 100644
--- a/web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
+++ b/web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
@@ -22,7 +22,7 @@ const MemoDetailSidebarDrawer = ({ memo, parentPage }: Props) => {
return (
-
diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx
index aaba44ab1..d51d56e0c 100644
--- a/web/src/pages/MemoDetail.tsx
+++ b/web/src/pages/MemoDetail.tsx
@@ -99,6 +99,29 @@ const MemoDetail = () => {
{t("memo.comment.self")}
+ {comments.length === 0 ? (
+ showCreateCommentButton && (
+
+
+ {t("memo.comment.write-a-comment")}
+
+
+
+ )
+ ) : (
+
+
+
+ {t("memo.comment.self")}
+ ({comments.length})
+
+ {showCreateCommentButton && (
+
+ {t("memo.comment.write-a-comment")}
+
+ )}
+
+ )}
{showCommentEditor && (
{
/>
)}
- {comments.length === 0 ? (
- showCreateCommentButton && (
-
-
- {t("memo.comment.write-a-comment")}
-
-
-
- )
- ) : (
- <>
-
-
-
- {t("memo.comment.self")}
- ({comments.length})
-
- {showCreateCommentButton && (
-
- {t("memo.comment.write-a-comment")}
-
- )}
-
- {comments.map((comment) => (
-
- ))}
- >
- )}
+ {comments.map((comment) => (
+
+ ))}