Skip to content

Commit 845e899

Browse files
committed
Fixed mobile TOC orientation listener
1 parent b7cd1db commit 845e899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/script_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine
274274
isMobile = true;
275275
}
276276

277-
var TOC_SCREEN_WIDTH_CUTOFF = 400
277+
var TOC_SCREEN_WIDTH_CUTOFF = 667
278278

279279
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) {
280280
$(`code:contains(ToC)`).html(TOC_MOBILE);

0 commit comments

Comments
 (0)