fix: dm chat list hidden on mobile

This commit is contained in:
2024-01-26 13:29:15 +00:00
parent 3355822bcd
commit c8c0cc2ac5
3 changed files with 2 additions and 4 deletions

View File

@ -10,5 +10,5 @@ export function ChatParticipantProfile({ participant }: { participant: ChatParti
if (participant.id === publicKey) {
return <NoteToSelf className="grow" />;
}
return <ProfileImage pubkey={participant.id} className="grow" profile={participant.profile as CachedMetadata} />;
return <ProfileImage pubkey={participant.id} className="grow" profile={participant.profile as CachedMetadata} link="" />;
}

View File

@ -83,7 +83,7 @@ export default function MessagesPage() {
return (
<div className="flex flex-1 md:h-screen md:overflow-hidden">
{pageWidth >= TwoCol && (
{(pageWidth >= TwoCol || !id) && (
<div className="overflow-y-auto md:h-screen p-1 w-full md:w-1/3 flex-shrink-0">
<div className="flex items-center justify-between p-2">
<button disabled={unreadCount <= 0} type="button" className="text-sm font-semibold">