fix: dm chat list hidden on mobile

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

View File

@ -7,7 +7,6 @@ import { Link } from "react-router-dom";
import { ShowMoreInView } from "@/Components/Event/ShowMore";
import { DisplayAs, DisplayAsSelector } from "@/Components/Feed/DisplayAsSelector";
import { TimelineRenderer } from "@/Components/Feed/TimelineRenderer";
import { LiveStreams } from "@/Components/LiveStream/LiveStreams";
import useTimelineFeed, { TimelineFeedOptions, TimelineSubject } from "@/Feed/TimelineFeed";
import useLogin from "@/Hooks/useLogin";
import { dedupeByPubkey } from "@/Utils";
@ -82,7 +81,6 @@ const TimelineFollows = (props: TimelineFollowsProps) => {
return (
<>
{(props.liveStreams ?? true) && <LiveStreams />}
<DisplayAsSelector
show={props.showDisplayAsSelector}
activeSelection={displayAs}

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">