minor fixes

This commit is contained in:
Ren Amamiya
2023-06-02 18:32:09 +07:00
parent 48e453fe5c
commit e2491e47c0
10 changed files with 33 additions and 34 deletions

View File

@@ -29,7 +29,7 @@ export function ChannelMessageUser({
</>
) : (
<>
<div className="relative h-11 w-11 shrink rounded-md">
<div className="relative h-11 w-11 shrink-0 rounded-md">
<Image
src={user?.picture || DEFAULT_AVATAR}
alt={pubkey}
@@ -38,7 +38,7 @@ export function ChannelMessageUser({
</div>
<div className="flex w-full flex-1 items-start justify-between">
<div className="flex items-baseline gap-2 text-base">
<span className="font-semibold leading-none text-white">
<span className="max-w-[10rem] truncate font-semibold leading-none text-white">
{user?.nip05 || user?.name || shortenKey(pubkey)}
</span>
<span className="leading-none text-zinc-500">·</span>

View File

@@ -22,7 +22,7 @@ export function UserReply({ pubkey }: { pubkey: string }) {
className="h-9 w-9 rounded object-cover"
/>
</div>
<span className="text-sm font-medium leading-none text-zinc-500">
<span className="max-w-[10rem] truncate text-sm font-medium leading-none text-zinc-500">
Replying to {user?.name || shortenKey(pubkey)}
</span>
</>