Skip to content

Commit b44ef9c

Browse files
committed
css: h2 wrap instead of scroll.
Previously, h2 would scroll horizontally to accommodate very long page titles, such as ngx_http_random_index_module. This is effective but some browsers always display scrollbars, even when the title does not overflow. As it is not possible to treat underscore as a wrappable character with the current content generator, we now wrap very long words (mid-word) when necessary.
1 parent fb8ab84 commit b44ef9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css/style_en.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ h2 {
6666
font-size: 2rem;
6767
line-height: 2.25rem;
6868
margin: 1rem 0 .5rem 0;
69-
overflow-x: scroll;
69+
overflow-wrap: break-word;
7070
}
7171

7272
h4 {

css/style_ru.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ h2 {
6666
font-size: 2rem;
6767
line-height: 2.25rem;
6868
margin: 1rem 0 .5rem 0;
69-
overflow-x: scroll;
69+
overflow-wrap: break-word;
7070
}
7171

7272
h4 {

0 commit comments

Comments
 (0)