From 95675cdf070002991bc91acaae4c8eb8e4885b6f Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 28 Jul 2023 23:52:50 +0800 Subject: [PATCH] fix: show full content in detail page (#2041) fix #1373 again --- web/src/components/Memo.tsx | 4 +++- web/src/pages/MemoDetail.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 05f6683a8..753412b5a 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -23,12 +23,13 @@ import "@/less/memo.less"; interface Props { memo: Memo; showCreator?: boolean; + showFull?: boolean; showVisibility?: boolean; showRelatedMemos?: boolean; } const Memo: React.FC = (props: Props) => { - const { memo, showCreator, showVisibility, showRelatedMemos } = props; + const { memo, showCreator, showFull, showVisibility, showRelatedMemos } = props; const { i18n } = useTranslation(); const t = useTranslate(); const filterStore = useFilterStore(); @@ -278,6 +279,7 @@ const Memo: React.FC = (props: Props) => { diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx index a0c890f82..deea520ae 100644 --- a/web/src/pages/MemoDetail.tsx +++ b/web/src/pages/MemoDetail.tsx @@ -45,7 +45,7 @@ const MemoDetail = () => { (memo ? ( <>
- +