[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scrolling js-info help page
From: |
Per Bothner |
Subject: |
scrolling js-info help page |
Date: |
Tue, 22 Jun 2021 16:56:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
In the js-info reader, typing '?' brings up a page about "Keyboard Shortcuts".
Unfortunately, if the window height is too small, it is cut off and
there is no way to scroll it.
It was difficult to find a fix that didn't have glitches, but this seems to
work (tested in Chrome and Firefox):
2021-06-22 Per Bothner <per@bothner.com>
* js/info.css: Styling tweaks for js-info to make help scrollable.
diff --git a/js/info.css b/js/info.css
index d8d20e1723..14537b67ad 100644
--- a/js/info.css
+++ b/js/info.css
@@ -166,13 +166,12 @@ table#keyboard-shortcuts th {
display: none;
position: fixed;
z-index: 1;
- padding-top: 100px;
+ padding-top: 40px;
left: 25%;
top: 0;
+ bottom: 0px;
width: 75%;
- height: 100%;
- overflow: auto;
- background-color: rgb(0,0,0); /* Fallback color */
+ background-color: #888; /* Fallback color */
background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}
@@ -182,6 +181,8 @@ table#keyboard-shortcuts th {
margin: auto;
padding: 20px;
width: 80%;
+ max-height: 100%;
+ overflow-y: auto;
}
/*-------.
Not urgent, but probably worth checking in before the release.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scrolling js-info help page,
Per Bothner <=