aboutsummaryrefslogtreecommitdiff
path: root/_content/css
diff options
context:
space:
mode:
authorNikita Shoshin <shoshin_nikita@fastmail.com>2025-06-05 09:12:36 +0000
committerGopher Robot <gobot@golang.org>2025-06-09 20:35:03 -0700
commitb634b1b108aa5a70bcdfd1a9e7225907af15c23c (patch)
treea1b6331d58d31eadc2b59286949fa65e90987e83 /_content/css
parentc697ae97e25711db1ce5e0a99e76e73ce4507fd8 (diff)
downloadgo-x-website-b634b1b108aa5a70bcdfd1a9e7225907af15c23c.tar.xz
_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: 77278635b3e79f13310434c99ca07dfff97b3b8d GitHub-Pull-Request: golang/website#323 Reviewed-on: https://go-review.googlesource.com/c/website/+/679035 Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Sean Liao <sean@liao.dev>
Diffstat (limited to '_content/css')
-rw-r--r--_content/css/styles.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/_content/css/styles.css b/_content/css/styles.css
index 673a8abc..2c46017a 100644
--- a/_content/css/styles.css
+++ b/_content/css/styles.css
@@ -4581,6 +4581,8 @@ a.error {
border-top-left-radius: 0.3125rem;
border-top-right-radius: 0.3125rem;
overflow: hidden;
+ display: flex;
+ flex-direction: column;
}
.PlayPage {
color: var(--color-text);
@@ -4611,6 +4613,7 @@ a.error {
}
.Playground-inputContainer #wrap {
height: 100%;
+ min-height: 0; /* prevent #wrap from overflowing the container */
}
.Playground-outputContainer {
border-bottom-right-radius: 0.3125rem;