style: update MentionNode styling
This commit is contained in:
@@ -8,10 +8,7 @@ export default function MentionNode(props: NodeViewRendererProps & { selected: b
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<NodeViewWrapper
|
<NodeViewWrapper
|
||||||
className={cn(
|
className={cn('inline text-primary', props.selected ? 'bg-primary/20 rounded-sm' : '')}
|
||||||
'inline text-primary bg-primary/10 rounded-md px-1 transition-colors',
|
|
||||||
props.selected ? 'bg-primary/20' : ''
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{'@'}
|
{'@'}
|
||||||
{profile ? profile.username : formatUserId(props.node.attrs.id)}
|
{profile ? profile.username : formatUserId(props.node.attrs.id)}
|
||||||
|
|||||||
Reference in New Issue
Block a user