mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-05 09:04:19 +00:00
Fix all scrolling issues
This commit is contained in:
parent
cf73282994
commit
8b87e50b51
@ -30,15 +30,13 @@ export default function MessageInput(props: Props) {
|
||||
};
|
||||
|
||||
return (
|
||||
<Grid container spacing={2} direction="row" alignItems="center">
|
||||
<Grid container direction="row" alignItems="center">
|
||||
<Grid item xs={11}>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Send a message"
|
||||
value={inputText}
|
||||
fullWidth
|
||||
style={{ margin: 8 }}
|
||||
margin="normal"
|
||||
fullWidth={true}
|
||||
InputLabelProps={{
|
||||
shrink: true,
|
||||
}}
|
||||
|
@ -19,12 +19,15 @@ export default function Room(props: Props) {
|
||||
return (
|
||||
<div
|
||||
className="chat-container"
|
||||
style={{ height: '100vh', display: 'flex', flexDirection: 'column' }}
|
||||
style={{ height: '98vh', display: 'flex', flexDirection: 'column' }}
|
||||
>
|
||||
<div className="chat-list" style={{ flexGrow: 1, overflow: 'scroll' }}>
|
||||
<div
|
||||
className="chat-list"
|
||||
style={{ display: 'flex', flexGrow: 1, overflowY: 'scroll' }}
|
||||
>
|
||||
<ChatList messages={props.lines} />
|
||||
</div>
|
||||
<div className="chat-input" style={{ flexGrow: 0, height: '120px' }}>
|
||||
<div className="chat-input" style={{ display: 'flex', padding: 20 }}>
|
||||
<MessageInput
|
||||
messageHandler={setMessageToSend}
|
||||
sendMessage={
|
||||
|
Loading…
x
Reference in New Issue
Block a user