From c2ee2d86b792aa8e69d1d64e95575a219ae9f114 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 17 Jan 2020 23:27:21 +0100 Subject: [PATCH] default sidebar width 25% --- html/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/script.js b/html/script.js index 7501c50..afb2cd3 100644 --- a/html/script.js +++ b/html/script.js @@ -551,6 +551,9 @@ function init_page() { if (localStorage['sidebar_width'] != null) $('#sidebar_container').width(localStorage['sidebar_width']); + else + $('#sidebar_container').width('25%'); + if ($('#sidebar_container').width() > $(window).innerWidth() *0.8) $('#sidebar_container').width('30%');