Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Make messages scrollable!
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinB committed May 21, 2019
1 parent 10448d5 commit aba9023
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,18 @@
display: flex;
padding-top: 4rem;
justify-content: center;
padding-bottom: 0;
position: absolute;
top: 7rem;
bottom: 10rem;
left: 0;
right: 0;
}

#chatInput {
z-index: 10;
width: inherit;
position: absolute;
position: fixed;
padding-bottom: 3rem;
bottom: 0;
margin: auto;
Expand All @@ -83,6 +90,14 @@
display: flex;
}

#messageContainer {
overflow-y: auto;
}

#messeges {
/* overflow: scroll; */
}

#messages > tr {
transition: opacity 1s ease-in-out;
will-change: opacity;
Expand Down Expand Up @@ -126,8 +141,10 @@ <h1>MetaTalk</h1>
<input id="nameInput" class="centered primaryInput" step=1 name="name" placeholder="Enter a name" style="display: none;">
<input id="channelInput" class="centered primaryInput" step=2 name="channel" placeholder="Choose a channel" style="display: none;" oninput="addHashtag()">
<div id="content" class="content" style="display: none;">
<table id="messages">
</table>
<div id="messageContainer">
<table id="messages">
</table>
</div>
<div id="chatInput">
<div>
<textarea id="chatArea" cols="40" rows="1" placeholder="Write something" oninput="updateMoneyButton()" autocomplete="off"></textarea>
Expand Down Expand Up @@ -260,6 +277,7 @@ <h1>MetaTalk</h1>
appendTx(tx);
});
$('td').linkify();
$("#messageContainer").scrollTop(1000000)
})
}

Expand Down

0 comments on commit aba9023

Please sign in to comment.