1
0
Fork 0

fix: align server/user/channel icon with title

user-stream
Lea 2023-08-20 13:47:50 +02:00
parent c3f18cec9b
commit 7d7017168b
Signed by: lea
GPG Key ID: 1BAFFE8347019C42
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ export function ChannelCard({
return (
<Card>
<CardHeader>
<CardTitle>
<CardTitle className="flex items-center gap-1">
<Avatar>
{channel.channel_type !== "DirectMessage" && (
<AvatarImage src={`${AUTUMN_URL}/icons/${channel.icon?._id}`} />

View File

@ -13,7 +13,7 @@ export function ServerCard({
return (
<Card>
<CardHeader>
<CardTitle>
<CardTitle className="flex items-center gap-1">
<Avatar>
<AvatarImage src={`${AUTUMN_URL}/icons/${server.icon?._id}`} />
<AvatarFallback>

View File

@ -18,7 +18,7 @@ export function UserCard({ user, subtitle, withLink }: { user: User; subtitle: s
}}
>
<CardHeader>
<CardTitle className="overflow-hidden overflow-ellipsis whitespace-nowrap">
<CardTitle className="overflow-hidden overflow-ellipsis whitespace-nowrap flex items-center gap-1">
<Avatar>
<AvatarImage src={`${AUTUMN_URL}/avatars/${user.avatar?._id}`} />
<AvatarFallback className="overflow-hidden overflow-ellipsis whitespace-nowrap">