Skip to content

Commit 6e6f370

Browse files
jshajyn514
authored andcommitted
Set overflow-y: hidden on navbar
In some unusual circumstances, parts of the navbar can overflow vertically. This interferes with the main body content in surprising ways, so we want to prevent that.
1 parent ad8d4fe commit 6e6f370

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/style/_navbar.scss

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ div.nav-container {
2828
color: var(--color-navbar-standard);
2929
/* The font size must be specified in pixels because the height is specified in pixels. */
3030
font: 16px $font-family-sans;
31+
/* In some unusual situations, like a locally installed copy of "Fira Sans," elements
32+
of the navbar might overflow vertically and start interfering with the main body
33+
content. To ensure that doesn't happen, hide any vertical overflow.
34+
See https://github.com/rust-lang/docs.rs/issues/1669.
35+
*/
36+
overflow-y: hidden;
3137

3238
li {
3339
border-left: 1px solid var(--color-border);

0 commit comments

Comments
 (0)