added proper scrolling support - 500px bounds for now
This commit is contained in:
parent
f90cf89b39
commit
c646758e63
2 changed files with 9 additions and 6 deletions
|
@ -1,12 +1,13 @@
|
|||
#chat-inner {
|
||||
height: 250px;
|
||||
.chat-inner-wrapper {
|
||||
height: 500px;
|
||||
overflow-y: auto;
|
||||
overflow-wrap: normal;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
|
||||
}
|
||||
.entry-box {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
min-height: 20%;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.chat {
|
||||
min-height: 80vh;
|
||||
|
|
|
@ -106,7 +106,9 @@ const ChatWrapper = (
|
|||
})
|
||||
return (
|
||||
<div className="chat">
|
||||
<div id="chat-inner">
|
||||
<div className="chat-inner-wrapper">
|
||||
<div id="chat-inner">
|
||||
</div>
|
||||
</div>
|
||||
<span className="entry-box"><input id="data-entry"></input><button onClick={() => sendData()}>Send</button></span>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue