style: adjust embedded note username

This commit is contained in:
codytseng
2024-11-09 22:42:55 +08:00
parent 53f9f6240f
commit 062e36330c

View File

@@ -26,7 +26,7 @@ export default function Note({
<div className={className}>
<div className="flex items-center space-x-2">
<UserAvatar userId={event.pubkey} size={size === 'small' ? 'small' : 'normal'} />
<div className="flex-1 w-0">
<div className={`flex-1 w-0 ${size === 'small' ? 'flex space-x-2 items-center' : ''}`}>
<Username
userId={event.pubkey}
className={`font-semibold max-w-fit flex ${size === 'small' ? 'text-xs' : 'text-sm'}`}