From e8bf44c2a513e331c2435ed67ca1ed9e83e48fb7 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Thu, 4 May 2023 17:28:53 +0800 Subject: [PATCH] refactor: voice for mobile --- src/routes/chat/ChannelChat/index.tsx | 2 +- src/routes/chat/Layout/index.tsx | 8 +++++--- src/routes/chat/RTCWidget.tsx | 2 +- src/routes/chat/VoiceChat/Dashboard.tsx | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/routes/chat/ChannelChat/index.tsx b/src/routes/chat/ChannelChat/index.tsx index dccd6fc4..bb173fe4 100644 --- a/src/routes/chat/ChannelChat/index.tsx +++ b/src/routes/chat/ChannelChat/index.tsx @@ -69,7 +69,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) { const memberIds = is_public ? userIds : members.slice(0).sort((n) => (n == owner ? -1 : 0)); const addVisible = loginUser?.is_admin || owner == loginUser?.uid; const pinCount = data?.pinned_messages?.length || 0; - const toolClass = `relative cursor-pointer`; + const toolClass = `relative cursor-pointer hidden md:block`; return = ({ - {aside && } + {aside &&
+ {aside} +
} {users &&
{users}
} - {voice &&
{voice}
} + {voice &&
{voice}
} {!readonly && inputMode == "text" && isActive && ( )} - + ); }; diff --git a/src/routes/chat/RTCWidget.tsx b/src/routes/chat/RTCWidget.tsx index a7a71116..36904d7c 100644 --- a/src/routes/chat/RTCWidget.tsx +++ b/src/routes/chat/RTCWidget.tsx @@ -50,7 +50,7 @@ const RTCWidget = ({ id, context = "channel" }: Props) => { -
+