Skip to content

Commit 1f22b7e

Browse files
committed
Widened the gap between TOC lines on mobile
1 parent e9e97fa commit 1f22b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/script_2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine
5757
var TOC_SCREEN_WIDTH_CUTOFF = 667
5858

5959
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) {
60-
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em");
60+
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em");
6161
}
6262

6363
function updateToc() {
6464
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) {
65-
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em");
65+
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em");
6666
} else {
6767
$(`code:contains(ToC)`).html(TOC).css("line-height", "1em");
6868
}

0 commit comments

Comments
 (0)