mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-10 11:26:58 +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 (
|
return (
|
||||||
<Grid container spacing={2} direction="row" alignItems="center">
|
<Grid container direction="row" alignItems="center">
|
||||||
<Grid item xs={11}>
|
<Grid item xs={11}>
|
||||||
<TextField
|
<TextField
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
label="Send a message"
|
label="Send a message"
|
||||||
value={inputText}
|
value={inputText}
|
||||||
fullWidth
|
fullWidth={true}
|
||||||
style={{ margin: 8 }}
|
|
||||||
margin="normal"
|
|
||||||
InputLabelProps={{
|
InputLabelProps={{
|
||||||
shrink: true,
|
shrink: true,
|
||||||
}}
|
}}
|
||||||
|
@ -19,12 +19,15 @@ export default function Room(props: Props) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="chat-container"
|
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} />
|
<ChatList messages={props.lines} />
|
||||||
</div>
|
</div>
|
||||||
<div className="chat-input" style={{ flexGrow: 0, height: '120px' }}>
|
<div className="chat-input" style={{ display: 'flex', padding: 20 }}>
|
||||||
<MessageInput
|
<MessageInput
|
||||||
messageHandler={setMessageToSend}
|
messageHandler={setMessageToSend}
|
||||||
sendMessage={
|
sendMessage={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user