From 1f22b7e2821e90c78f4d371e3c021d4d200f6dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 2 Jul 2020 12:09:11 +0200 Subject: [PATCH] Widened the gap between TOC lines on mobile --- web/script_2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/script_2.js b/web/script_2.js index f360f08..e1285ea 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -57,12 +57,12 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine var TOC_SCREEN_WIDTH_CUTOFF = 667 if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { - $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em"); + $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em"); } function updateToc() { if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { - $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.4em"); + $(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em"); } else { $(`code:contains(ToC)`).html(TOC).css("line-height", "1em"); }