Commit 3426a791 authored by Johnny's avatar Johnny

chore: update tag styles

parent fb13d2e6
......@@ -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,
)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment