mirror of https://github.com/usememos/memos.git
chore: tweak comments display
This commit is contained in:
parent
ed66e0fec2
commit
62646853eb
|
|
@ -60,18 +60,15 @@ const MemoHeader: React.FC<MemoHeaderProps> = ({
|
|||
/>
|
||||
)}
|
||||
|
||||
{!isInMemoDetailPage && (
|
||||
{!isInMemoDetailPage && commentAmount > 0 && (
|
||||
<Link
|
||||
className={cn(
|
||||
"flex flex-row justify-start items-center rounded-md px-1 hover:opacity-80 gap-0.5",
|
||||
commentAmount === 0 && "hidden sm:group-hover:flex",
|
||||
)}
|
||||
className={cn("flex flex-row justify-start items-center rounded-md px-1 hover:opacity-80 gap-0.5")}
|
||||
to={`/${memo.name}#comments`}
|
||||
viewTransition
|
||||
state={{ from: parentPage }}
|
||||
>
|
||||
<MessageCircleMoreIcon className="w-4 h-4 mx-auto text-muted-foreground" />
|
||||
{commentAmount > 0 && <span className="text-xs text-muted-foreground">{commentAmount}</span>}
|
||||
<span className="text-xs text-muted-foreground">{commentAmount}</span>
|
||||
</Link>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue