chore: update tag styles

pull/4722/merge
Johnny 2 weeks ago
parent fb13d2e63d
commit 3426a791b6

@ -45,10 +45,14 @@ const Tag = observer(({ content }: Props) => {
return ( return (
<span <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} onClick={handleTagClick}
> >
#{content} <span className="opacity-70 font-mono">#</span>
{content}
</span> </span>
); );
}); });

@ -87,7 +87,7 @@ const MemoContent = observer((props: Props) => {
<div <div
ref={memoContentContainerRef} ref={memoContentContainerRef}
className={cn( 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", showCompactMode == "ALL" && "line-clamp-6 max-h-60",
contentClassName, contentClassName,
)} )}

Loading…
Cancel
Save