Browse Source

style: update MentionNode styling

imwald
codytseng 8 months ago
parent
commit
243cb347d1
  1. 5
      src/components/PostEditor/PostTextarea/MentionNode.tsx

5
src/components/PostEditor/PostTextarea/MentionNode.tsx

@ -8,10 +8,7 @@ export default function MentionNode(props: NodeViewRendererProps & { selected: b @@ -8,10 +8,7 @@ export default function MentionNode(props: NodeViewRendererProps & { selected: b
return (
<NodeViewWrapper
className={cn(
'inline text-primary bg-primary/10 rounded-md px-1 transition-colors',
props.selected ? 'bg-primary/20' : ''
)}
className={cn('inline text-primary', props.selected ? 'bg-primary/20 rounded-sm' : '')}
>
{'@'}
{profile ? profile.username : formatUserId(props.node.attrs.id)}

Loading…
Cancel
Save