Update MainPanel.tsx
This commit is contained in:
@@ -82,7 +82,7 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
|
|||||||
sx={{ maxHeight: '100vh', display: 'flex', flexDirection: 'column' }}
|
sx={{ maxHeight: '100vh', display: 'flex', flexDirection: 'column' }}
|
||||||
>
|
>
|
||||||
{/* conversation header details and controls */}
|
{/* 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">
|
<Stack direction="row" alignItems="center">
|
||||||
<IconButton color="primary" size="small">
|
<IconButton color="primary" size="small">
|
||||||
<FiSun />
|
<FiSun />
|
||||||
@@ -121,6 +121,19 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Stack>
|
</Stack>
|
||||||
</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>
|
</Box>
|
||||||
|
|
||||||
<Stack direction={'column'} sx={{ flex: 1, overflowY: 'auto' }}>
|
<Stack direction={'column'} sx={{ flex: 1, overflowY: 'auto' }}>
|
||||||
@@ -156,20 +169,6 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
|
|||||||
<ConversationChunk />
|
<ConversationChunk />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Container>
|
</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>
|
</Stack>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user