Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: show full content in detail page (#2041)
Gerald95675cdf0700
diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsxindex 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: 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: Props) => {</div><MemoContentcontent={memo.content}+ showFull={showFull}onMemoContentClick={handleMemoContentClick}onMemoContentDoubleClick={handleMemoContentDoubleClick}/>diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsxindex a0c890f82..deea520ae 100644--- a/web/src/pages/MemoDetail.tsx+++ b/web/src/pages/MemoDetail.tsx@@ -45,7 +45,7 @@ const MemoDetail = () => {(memo ? (<><main className="relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4">- <Memo memo={memo} showCreator showRelatedMemos />+ <Memo memo={memo} showCreator showFull showRelatedMemos /></main><div className="mt-4 w-full flex flex-row justify-center items-center gap-2"><Link