Skip to content

Commit 8336d4e

Browse files
committed
Mobile TOC test
1 parent c245a43 commit 8336d4e

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-
val TOC_SCREEN_WIDTH_CUTOFF = 300
277+
val TOC_SCREEN_WIDTH_CUTOFF = 400
278278

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

0 commit comments

Comments
 (0)