Skip to content

Commit b634b1b

Browse files
ShoshinNikitagopherbot
authored andcommitted
_content/css: fix editor's scroll on playground
Use "display: flex" to account for the height of the "Press Esc to move..." banner when calculating the height of the editor. This fixes the bug that prevented users from scrolling to the end of the text. Fixes golang/go#63237 Change-Id: I1d4c196d9b3170d766ffdd0df779c5e693a6ed5a GitHub-Last-Rev: 7727863 GitHub-Pull-Request: #323 Reviewed-on: https://go-review.googlesource.com/c/website/+/679035 Reviewed-by: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent c697ae9 commit b634b1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_content/css/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4581,6 +4581,8 @@ a.error {
45814581
border-top-left-radius: 0.3125rem;
45824582
border-top-right-radius: 0.3125rem;
45834583
overflow: hidden;
4584+
display: flex;
4585+
flex-direction: column;
45844586
}
45854587
.PlayPage {
45864588
color: var(--color-text);
@@ -4611,6 +4613,7 @@ a.error {
46114613
}
46124614
.Playground-inputContainer #wrap {
46134615
height: 100%;
4616+
min-height: 0; /* prevent #wrap from overflowing the container */
46144617
}
46154618
.Playground-outputContainer {
46164619
border-bottom-right-radius: 0.3125rem;

0 commit comments

Comments
 (0)