Move padding and overflow-y from #gamescreen to #gametext

For stories that are long enough for the scroll bar to appear on the
screen, Firefox on desktop would originally only allow you to start
editing if you click on the actual text, i.e. you couldn't click on the
blank part of a line. This behaviour is now fixed.
This commit is contained in:
Gnome Ann 2021-09-27 16:37:38 -04:00
parent 25758dc3ab
commit 47c6f48e94
2 changed files with 3 additions and 3 deletions

View File

@ -402,7 +402,7 @@ function hideWaitAnimation() {
function scrollToBottom() {
setTimeout(function () {
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 500);
game_text.animate({scrollTop: game_text.prop('scrollHeight')}, 500);
}, 5);
}

View File

@ -69,10 +69,8 @@ chunk.editing, chunk.editing * {
#gamescreen {
height: 490px;
margin-top: 10px;
padding: 10px;
display: flex;
vertical-align: bottom;
overflow-y: scroll;
background-color: #262626;
color: #ffffff;
font-size: 12pt;
@ -87,6 +85,8 @@ chunk.editing, chunk.editing * {
max-height: 100%;
width: 100%;
word-wrap: break-word;
padding: 10px;
overflow-y: scroll;
}
#seqselmenu {