Update MainPanel.tsx

This commit is contained in:
talksik
2022-06-20 10:38:03 -05:00
parent f7e6bcbec3
commit de3c71517f
+14 -15
View File
@@ -82,7 +82,7 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
sx={{ maxHeight: '100vh', display: 'flex', flexDirection: 'column' }}
>
{/* conversation header details and controls */}
<Box sx={{ p: 2, boxShadow: 3, zIndex: 10 }}>
<Box sx={{ p: 2, boxShadow: 3, zIndex: 10 }} flexDirection={'column'}>
<Stack direction="row" alignItems="center">
<IconButton color="primary" size="small">
<FiSun />
@@ -121,6 +121,19 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
</Tooltip>
</Stack>
</Stack>
{/* live video and screenshares */}
<Stack direction="row" alignItems={'center'}>
{masterConversation.room &&
Object.entries(masterConversation.room).map(([userId, userPeerContents]) => {
return (
<Video
key={`userPeerRenderConvoDetails-${userId}`}
stream={userPeerContents.stream}
/>
);
})}
</Stack>
</Box>
<Stack direction={'column'} sx={{ flex: 1, overflowY: 'auto' }}>
@@ -156,20 +169,6 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
<ConversationChunk />
</Stack>
</Container>
<Container maxWidth={false}>
<Stack direction="row" alignItems={'center'}>
{masterConversation.room &&
Object.entries(masterConversation.room).map(([userId, userPeerContents]) => {
return (
<Video
key={`userPeerRenderConvoDetails-${userId}`}
stream={userPeerContents.stream}
/>
);
})}
</Stack>
</Container>
</Stack>
</Container>
);