feat: highlight pinned memos (#4843)
This commit is contained in:
parent
452f47c4b9
commit
9eafb9bc26
1 changed files with 2 additions and 1 deletions
|
|
@ -136,7 +136,8 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 bg-card text-card-foreground rounded-lg border border-border transition-colors",
|
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 text-card-foreground rounded-lg border border-border transition-colors",
|
||||||
|
props.showPinned && memo.pinned ? "bg-accent" : "bg-card",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue