trying things with scroll and such
This commit is contained in:
@@ -78,48 +78,6 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
|
|||||||
return (
|
return (
|
||||||
<Container maxWidth={false} disableGutters>
|
<Container maxWidth={false} disableGutters>
|
||||||
<Stack direction={'column'} sx={{ position: 'relative' }}>
|
<Stack direction={'column'} sx={{ position: 'relative' }}>
|
||||||
{/* conversation header details and controls */}
|
|
||||||
<Box sx={{ p: 2, boxShadow: 3, zIndex: 10 }}>
|
|
||||||
<Stack direction="row" alignItems="center">
|
|
||||||
<IconButton color="primary" size="small">
|
|
||||||
<FiSun />
|
|
||||||
</IconButton>
|
|
||||||
<ConversationLabel
|
|
||||||
users={masterConversation.members}
|
|
||||||
conversationName={masterConversation.name}
|
|
||||||
isSelected={true}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* conversation controls */}
|
|
||||||
<Stack
|
|
||||||
direction="row"
|
|
||||||
alignItems="center"
|
|
||||||
sx={{
|
|
||||||
ml: 'auto',
|
|
||||||
}}
|
|
||||||
spacing={1}
|
|
||||||
>
|
|
||||||
<Tooltip title="Add to priority panel!">
|
|
||||||
{isPriority ? (
|
|
||||||
<Fab size="small" color="primary">
|
|
||||||
<FiZap />
|
|
||||||
</Fab>
|
|
||||||
) : (
|
|
||||||
<IconButton size="small">
|
|
||||||
<FiZap />
|
|
||||||
</IconButton>
|
|
||||||
)}
|
|
||||||
</Tooltip>
|
|
||||||
|
|
||||||
<Tooltip title="Add people to the conversation">
|
|
||||||
<IconButton size="small">
|
|
||||||
<FiUserPlus />
|
|
||||||
</IconButton>
|
|
||||||
</Tooltip>
|
|
||||||
</Stack>
|
|
||||||
</Stack>
|
|
||||||
</Box>
|
|
||||||
|
|
||||||
{/* main canvas */}
|
{/* main canvas */}
|
||||||
<Container maxWidth={'sm'} sx={{ pt: 2 }}>
|
<Container maxWidth={'sm'} sx={{ pt: 2 }}>
|
||||||
<Stack spacing={1} sx={{ display: 'flex', flexDirection: 'column', py: 2 }}>
|
<Stack spacing={1} sx={{ display: 'flex', flexDirection: 'column', py: 2 }}>
|
||||||
@@ -166,6 +124,48 @@ function ConversationDetails({ masterConversation }: { masterConversation: Maste
|
|||||||
})}
|
})}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
|
{/* conversation header details and controls */}
|
||||||
|
<Box sx={{ p: 2, boxShadow: 3, zIndex: 10, position: 'sticky' }}>
|
||||||
|
<Stack direction="row" alignItems="center">
|
||||||
|
<IconButton color="primary" size="small">
|
||||||
|
<FiSun />
|
||||||
|
</IconButton>
|
||||||
|
<ConversationLabel
|
||||||
|
users={masterConversation.members}
|
||||||
|
conversationName={masterConversation.name}
|
||||||
|
isSelected={true}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* conversation controls */}
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
alignItems="center"
|
||||||
|
sx={{
|
||||||
|
ml: 'auto',
|
||||||
|
}}
|
||||||
|
spacing={1}
|
||||||
|
>
|
||||||
|
<Tooltip title="Add to priority panel!">
|
||||||
|
{isPriority ? (
|
||||||
|
<Fab size="small" color="primary">
|
||||||
|
<FiZap />
|
||||||
|
</Fab>
|
||||||
|
) : (
|
||||||
|
<IconButton size="small">
|
||||||
|
<FiZap />
|
||||||
|
</IconButton>
|
||||||
|
)}
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
|
<Tooltip title="Add people to the conversation">
|
||||||
|
<IconButton size="small">
|
||||||
|
<FiUserPlus />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
@@ -254,7 +254,7 @@ function ConversationChunk() {
|
|||||||
<Box sx={{ position: 'relative', p: 4 }}>
|
<Box sx={{ position: 'relative', p: 4 }}>
|
||||||
<Slider
|
<Slider
|
||||||
aria-label="Restricted values"
|
aria-label="Restricted values"
|
||||||
defaultValue={25}
|
defaultValue={0}
|
||||||
valueLabelFormat={valueLabelFormat}
|
valueLabelFormat={valueLabelFormat}
|
||||||
getAriaValueText={valuetext}
|
getAriaValueText={valuetext}
|
||||||
valueLabelDisplay="on"
|
valueLabelDisplay="on"
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export default function Terminal() {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
maxHeight: '100vh',
|
maxHeight: '100vh',
|
||||||
|
overflowY: 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MainPanel />
|
<MainPanel />
|
||||||
|
|||||||
Reference in New Issue
Block a user