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
chore: tweak comments display
Steven62646853eb3f
diff --git a/web/src/components/MemoView/components/MemoHeader.tsx b/web/src/components/MemoView/components/MemoHeader.tsxindex c17eef8b8..41a7f59bc 100644--- a/web/src/components/MemoView/components/MemoHeader.tsx+++ b/web/src/components/MemoView/components/MemoHeader.tsx@@ -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`}viewTransitionstate={{ 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>)}