mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 15:13:10 +08:00
chore: update compace mode handler
This commit is contained in:
parent
9ce381abb9
commit
15be18fa85
1 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
import classNames from "classnames";
|
||||
import { memo, useEffect, useRef, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import useCurrentUser from "@/hooks/useCurrentUser";
|
||||
import { useMemoStore } from "@/store/v1";
|
||||
import { Node, NodeType } from "@/types/node";
|
||||
|
@ -94,13 +93,13 @@ const MemoContent: React.FC<Props> = (props: Props) => {
|
|||
</RendererContext.Provider>
|
||||
{memo && showCompactMode && (
|
||||
<div className="w-full mt-2">
|
||||
<Link
|
||||
className="w-auto inline-flex flex-row justify-start items-center text-sm text-blue-600 dark:text-blue-400 hover:underline"
|
||||
to={`/m/${memo.name}`}
|
||||
<div
|
||||
className="w-auto inline-flex flex-row justify-start items-center cursor-pointer text-sm text-blue-600 dark:text-blue-400 hover:opacity-80"
|
||||
onClick={() => setShowCompactMode(false)}
|
||||
>
|
||||
<span>{t("memo.show-more")}</span>
|
||||
<Icon.ChevronRight className="w-4 h-auto" />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue