chore: update tag styles

pull/4722/merge
Johnny 1 week ago
parent fb13d2e63d
commit 3426a791b6

@ -45,10 +45,14 @@ const Tag = observer(({ content }: Props) => {
return (
<span
className={cn("inline-block w-auto text-primary", context.disableFilter ? "" : "cursor-pointer hover:text-primary/80")}
className={cn(
"inline-block w-auto px-1 py-px rounded-md text-sm font-medium bg-secondary text-secondary-foreground",
context.disableFilter ? "" : "cursor-pointer hover:opacity-80 transition-colors",
)}
onClick={handleTagClick}
>
#{content}
<span className="opacity-70 font-mono">#</span>
{content}
</span>
);
});

@ -87,7 +87,7 @@ const MemoContent = observer((props: Props) => {
<div
ref={memoContentContainerRef}
className={cn(
"relative w-full max-w-full break-words text-base leading-snug space-y-2 whitespace-pre-wrap",
"relative w-full max-w-full break-words text-base leading-6 space-y-1 whitespace-pre-wrap",
showCompactMode == "ALL" && "line-clamp-6 max-h-60",
contentClassName,
)}

Loading…
Cancel
Save