mirror of
https://github.com/usememos/memos.git
synced 2025-10-24 21:41:17 +08:00
chore: update tag styles
This commit is contained in:
parent
fb13d2e63d
commit
3426a791b6
2 changed files with 7 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue