From ff92ebe049cb2d1a28158ac13f4a417a938e06b7 Mon Sep 17 00:00:00 2001 From: Gerald Date: Sat, 18 Mar 2023 13:46:53 +0000 Subject: [PATCH] fix: make creation time a link to the detail page --- web/src/components/Memo.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 9ba00c892abc1..90f515b910600 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -171,8 +171,11 @@ const Memo: React.FC = (props: Props) => { editorStore.setEditMemoWithId(memo.id); }; - const handleMemoCreatedTimeClick = () => { - showChangeMemoCreatedTsDialog(memo.id); + const handleMemoCreatedTimeClick = (e: React.MouseEvent) => { + if (e.altKey) { + e.preventDefault(); + showChangeMemoCreatedTsDialog(memo.id); + } }; const handleMemoVisibilityClick = (visibility: Visibility) => { @@ -189,9 +192,9 @@ const Memo: React.FC = (props: Props) => { {memo.pinned &&
}
- + {createdTimeStr} - + {isVisitorMode && ( @{memo.creatorName}