better organizing the conversations
This commit is contained in:
@@ -91,28 +91,32 @@ export default function FooterControls() {
|
|||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
{selectedConversation && (
|
{selectedConversation && (
|
||||||
<Stack
|
<>
|
||||||
direction={'row'}
|
<Stack
|
||||||
sx={{
|
direction={'row'}
|
||||||
flex: 1,
|
sx={{
|
||||||
mx: 'auto',
|
flex: 1,
|
||||||
WebkitAppRegion: 'drag',
|
mx: 'auto',
|
||||||
cursor: 'pointer',
|
|
||||||
}}
|
|
||||||
alignItems={'center'}
|
|
||||||
justifyContent={'flex-start'}
|
|
||||||
>
|
|
||||||
<IconButton color="primary" size="small">
|
|
||||||
<FiSun />
|
|
||||||
</IconButton>
|
|
||||||
|
|
||||||
<Box sx={{ color: 'GrayText' }}>
|
WebkitAppRegion: 'drag',
|
||||||
<ConversationLabel
|
cursor: 'pointer',
|
||||||
users={selectedConversation.userCache ?? []}
|
}}
|
||||||
conversationName={selectedConversation.name}
|
alignItems={'center'}
|
||||||
isSelected={true}
|
justifyContent={'center'}
|
||||||
/>
|
spacing={1}
|
||||||
</Box>
|
>
|
||||||
|
<IconButton color="primary" size="small">
|
||||||
|
<FiSun />
|
||||||
|
</IconButton>
|
||||||
|
|
||||||
|
<Box sx={{ color: 'GrayText' }}>
|
||||||
|
<ConversationLabel
|
||||||
|
users={selectedConversation.userCache ?? []}
|
||||||
|
conversationName={selectedConversation.name}
|
||||||
|
isSelected={true}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
</Stack>
|
||||||
|
|
||||||
<AvatarGroup variant={'rounded'}>
|
<AvatarGroup variant={'rounded'}>
|
||||||
{selectedConversation.userCache?.map((conversationUser, index) => (
|
{selectedConversation.userCache?.map((conversationUser, index) => (
|
||||||
@@ -130,7 +134,7 @@ export default function FooterControls() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</AvatarGroup>
|
</AvatarGroup>
|
||||||
</Stack>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* todo: add a third mode which is when toggle broadcasting */}
|
{/* todo: add a third mode which is when toggle broadcasting */}
|
||||||
|
|||||||
Reference in New Issue
Block a user