feat: rtc widget divider

This commit is contained in:
Tristan Yang
2023-03-30 10:31:49 +08:00
parent a5e4a198e5
commit eeb6861e09
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -53,7 +53,12 @@ const voiceSlice = createSlice({
if (payload && state.voicing) {
state.voicing = { ...state.voicing, ...payload };
} else {
// reset
state.voicing = payload;
state.voicingMembers = {
ids: [],
byId: {}
};
}
},
updateMuteStatus(state, { payload }: PayloadAction<boolean>) {
+3 -3
View File
@@ -28,9 +28,9 @@ const RTCWidget = ({ id, context = "channel" }: Props) => {
const name = voicingInfo.context == "channel" ? channelData[voicingInfo.id]?.name : userData[voicingInfo.id]?.name;
if (!name) return null;
return (
<div className='bg-gray-100 dark:bg-gray-900 flex flex-col p-2 rounded-3xl m-3 text-sm'>
<div className='bg-gray-100 dark:bg-gray-900 flex flex-col p-2 rounded-3xl m-3 text-sm divide-y divide-gray-200 dark:divide-gray-800'>
{/* {voicingInfo && */}
<div className="flex justify-between items-center border-b border-gray-100 dark:border-gray-800 pb-3 mb-2">
<div className="flex justify-between items-center pb-3">
<div className="flex flex-1 items-center gap-1">
<Signal strength={voicingInfo.downlinkNetworkQuality} />
<div className="flex flex-col">
@@ -41,7 +41,7 @@ const RTCWidget = ({ id, context = "channel" }: Props) => {
<IconCallOff onClick={leave} role="button" className="fill-red-600" />
</div>
{/* } */}
<div className="flex justify-between items-center">
<div className="flex justify-between items-center pt-2">
<div className="flex items-center gap-3">
<User uid={loginUser.uid} compact />
<div className="flex flex-col">