Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 6fe449c

Browse files
Only show scrollbars when needed (#132)
* Only show scrollbars when needed Changes `overflow: scroll` to `overflow: auto` so that scroll bars only appear if the content is scrollable. This primarily affects macOS users who opt to always show scroll bars for accessibility reasons (and users on platforms that don't auto-hide scroll bars). * Regenerate all.min.css * Add changelog entry for #132 Co-authored-by: Mattt <[email protected]>
1 parent 682f95d commit 6fe449c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Assets/css/all.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ body {
738738

739739
main,
740740
nav {
741-
overflow-x: scroll;
741+
overflow-x: auto;
742742
}
743743

744744
main {
@@ -765,7 +765,7 @@ nav {
765765
float: right;
766766
margin-left: 1em;
767767
max-height: 100vh;
768-
overflow: scroll;
768+
overflow: auto;
769769
padding: 0 1em 3em 1em;
770770
position: sticky;
771771
top: 1em;
@@ -883,7 +883,7 @@ dd {
883883
border-radius: 8px;
884884
font-size: smaller;
885885
margin-bottom: 2em;
886-
overflow-x: scroll;
886+
overflow-x: auto;
887887
padding: 1em;
888888
padding-left: 3em;
889889
text-indent: -2em;

Changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Changed HTML output to show scrollbars only when necessary.
13+
#132 by @andrewchang-bird.
14+
1015
### Fixed
1116

1217
- Fixed runtime error related to networking and processes on Ubuntu Linux.

0 commit comments

Comments
 (0)