From c1d692a598feccf450b7c6398683ccdc7c32f54d Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 22 Feb 2019 14:55:46 +0100 Subject: [PATCH] bootstrap filemanager --- src/app/files/file-explorer.js | 19 ++++++++++--------- src/app/files/styles/file-explorer-styles.js | 8 +++----- src/app/panels/file-panel.js | 4 ++-- src/app/panels/styles/file-panel-styles.js | 12 +++--------- src/app/ui/TreeView.js | 1 - 5 files changed, 18 insertions(+), 26 deletions(-) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index b1d90ea71a..6c853bd07e 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -79,8 +79,8 @@ function fileExplorer (localRegistry, files) { self.focusElement = self.treeView.labelAt(self.focusPath) // TODO: here we update the selected file (it applicable) // cause we are refreshing the interface of the whole directory when there's a new file. - if (self.focusElement && !self.focusElement.classList.contains(css.hasFocus)) { - self.focusElement.classList.add(css.hasFocus) + if (self.focusElement && !self.focusElement.classList.contains('bg-primary')) { + self.focusElement.classList.add('bg-primary') } }) } @@ -122,7 +122,8 @@ function fileExplorer (localRegistry, files) { }, formatSelf: function formatSelf (key, data, li) { var isRoot = data.path === self.files.type - return yo`