mirror of
https://github.com/usememos/memos.git
synced 2025-02-21 21:57:47 +01:00
parent
8328b5dd4a
commit
95675cdf07
@ -23,12 +23,13 @@ import "@/less/memo.less";
|
|||||||
interface Props {
|
interface Props {
|
||||||
memo: Memo;
|
memo: Memo;
|
||||||
showCreator?: boolean;
|
showCreator?: boolean;
|
||||||
|
showFull?: boolean;
|
||||||
showVisibility?: boolean;
|
showVisibility?: boolean;
|
||||||
showRelatedMemos?: boolean;
|
showRelatedMemos?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Memo: React.FC<Props> = (props: Props) => {
|
const Memo: React.FC<Props> = (props: Props) => {
|
||||||
const { memo, showCreator, showVisibility, showRelatedMemos } = props;
|
const { memo, showCreator, showFull, showVisibility, showRelatedMemos } = props;
|
||||||
const { i18n } = useTranslation();
|
const { i18n } = useTranslation();
|
||||||
const t = useTranslate();
|
const t = useTranslate();
|
||||||
const filterStore = useFilterStore();
|
const filterStore = useFilterStore();
|
||||||
@ -278,6 +279,7 @@ const Memo: React.FC<Props> = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
<MemoContent
|
<MemoContent
|
||||||
content={memo.content}
|
content={memo.content}
|
||||||
|
showFull={showFull}
|
||||||
onMemoContentClick={handleMemoContentClick}
|
onMemoContentClick={handleMemoContentClick}
|
||||||
onMemoContentDoubleClick={handleMemoContentDoubleClick}
|
onMemoContentDoubleClick={handleMemoContentDoubleClick}
|
||||||
/>
|
/>
|
||||||
|
@ -45,7 +45,7 @@ const MemoDetail = () => {
|
|||||||
(memo ? (
|
(memo ? (
|
||||||
<>
|
<>
|
||||||
<main className="relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4">
|
<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>
|
</main>
|
||||||
<div className="mt-4 w-full flex flex-row justify-center items-center gap-2">
|
<div className="mt-4 w-full flex flex-row justify-center items-center gap-2">
|
||||||
<Link
|
<Link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user