From d4baac0bb59b1e4c4850cf98ccc94289242f89c2 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 27 Dec 2018 22:36:11 +0100 Subject: [PATCH] mobile fixes --- src/public/javascripts/services/mobile.js | 2 ++ src/public/stylesheets/mobile.css | 16 +++++++++++----- src/views/mobile.ejs | 2 ++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/public/javascripts/services/mobile.js b/src/public/javascripts/services/mobile.js index bde1bdbcc..f4a8fd091 100644 --- a/src/public/javascripts/services/mobile.js +++ b/src/public/javascripts/services/mobile.js @@ -30,6 +30,8 @@ async function showTree() { const node = data.node; const noteId = node.data.noteId; + treeService.clearSelectedNodes(); + treeService.setCurrentNotePathToHash(node); togglePanes(); diff --git a/src/public/stylesheets/mobile.css b/src/public/stylesheets/mobile.css index ebe3212da..a7b4b7d8a 100644 --- a/src/public/stylesheets/mobile.css +++ b/src/public/stylesheets/mobile.css @@ -70,17 +70,23 @@ html, body { .fancytree-node .fancytree-expander:before { font-family: 'jam-icons' !important; - speak:none;font-style:normal; - font-weight:normal; - font-variant:normal; - text-transform:none; - line-height:1; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; font-size: 2em; padding-left: 5px; padding-right: 5px; content: "\e9bc"; } +/* this is done to preserve correct indentation. Better solution would be preferable */ +.fancytree-node:not(.fancytree-folder) .fancytree-expander:before { + color: white; +} + .fancytree-node.fancytree-expanded .fancytree-expander:before { content: "\e9ba"; } diff --git a/src/views/mobile.ejs b/src/views/mobile.ejs index acdbd5297..8406fe269 100644 --- a/src/views/mobile.ejs +++ b/src/views/mobile.ejs @@ -67,6 +67,8 @@ + + \ No newline at end of file