fixed chat drawer mobile formatting
This commit is contained in:
parent
c33ce3d03a
commit
5c1434a2e7
4 changed files with 15 additions and 10 deletions
|
|
@ -92,14 +92,16 @@ export default function Chat(props: Props) {
|
|||
</Box>
|
||||
) : (
|
||||
<Box className={classes.chatContainer}>
|
||||
<ChatOutput
|
||||
totalMessages={totalMessages}
|
||||
messages={chats}
|
||||
removeNoteMethod={removeNote}
|
||||
loadMore={loadMore}
|
||||
/>
|
||||
<Box style={{bottom: 0}}>
|
||||
<Divider/>
|
||||
<Box sx={{ flex: 1, overflowY: "hidden", minHeight: 0 }}>
|
||||
<ChatOutput
|
||||
totalMessages={totalMessages}
|
||||
messages={chats}
|
||||
removeNoteMethod={removeNote}
|
||||
loadMore={loadMore}
|
||||
/>
|
||||
</Box>
|
||||
<Box style={{ flexShrink: 0 }}>
|
||||
<Divider />
|
||||
<ChatInput newNoteMethod={showNewNotes} objectKey={objectKey} type={type} />
|
||||
</Box>
|
||||
</Box>
|
||||
|
|
|
|||
|
|
@ -23,8 +23,10 @@ const useStyles = makeStyles<Theme>((theme: Theme) => ({
|
|||
},
|
||||
chatDrawerMobile: {
|
||||
backgroundColor: theme.palette.background.default,
|
||||
height: "auto",
|
||||
height: "100vh",
|
||||
width: "100%",
|
||||
display: "flex", // add this
|
||||
flexDirection: "column", // add this
|
||||
},
|
||||
drawerHeader: {
|
||||
display: "flex",
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ export default function ChatOutput(props: Props) {
|
|||
<Box ref={containerRef} onScroll={onScroll} style={{
|
||||
overflowY: "scroll",
|
||||
overflowX: "hidden",
|
||||
height: "100%",
|
||||
}}>
|
||||
{props.messages.length < props.totalMessages && (
|
||||
<ListItemButton onClick={seeMore} sx={{ justifyContent: "center"}}>
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ export default function TeamPage() {
|
|||
const isStreamline = IsStreamline()
|
||||
|
||||
return (
|
||||
<PageContainer spacing={isMobile ? 0 : 2}>
|
||||
<PageContainer spacing={isMobile ? 1 : 2}>
|
||||
<Box className={classes.container}>
|
||||
<Box className={classes.leftBox}>
|
||||
{title()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue