feat: improve shell and room display

This commit is contained in:
Jeremy Kahn 2022-08-31 19:26:38 -05:00
parent c9dadbb89e
commit 839628dc75
2 changed files with 13 additions and 4 deletions

View File

@ -111,7 +111,7 @@ function Bootstrap({
height: '100vh', height: '100vh',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
paddingTop: 7, paddingTop: 8,
}} }}
> >
<Snackbar <Snackbar
@ -137,7 +137,7 @@ function Bootstrap({
justifyContent: 'space-between', justifyContent: 'space-between',
}} }}
> >
<Typography sx={{ fontWeight: 'bold' }}>{title}</Typography> <Typography variant="h6">{title}</Typography>
<Tooltip title="Number of peers in the room"> <Tooltip title="Number of peers in the room">
<StepIcon icon={numberOfPeers} sx={{ marginLeft: 'auto' }} /> <StepIcon icon={numberOfPeers} sx={{ marginLeft: 'auto' }} />
</Tooltip> </Tooltip>

View File

@ -147,13 +147,22 @@ export function Room({
}) })
return ( return (
<Box className="h-full p-4 flex flex-col"> <Box
className="Room"
sx={{
height: '100%',
padding: 2,
paddingTop: 0,
display: 'flex',
flexDirection: 'column',
}}
>
<ChatTranscript <ChatTranscript
messageLog={messageLog} messageLog={messageLog}
userId={userId} userId={userId}
className="grow overflow-auto" className="grow overflow-auto"
/> />
<form onSubmit={handleMessageSubmit} className="mt-8"> <form onSubmit={handleMessageSubmit} className="mt-2">
<Stack direction="row" spacing={2}> <Stack direction="row" spacing={2}>
<FormControl fullWidth> <FormControl fullWidth>
<TextField <TextField