From 8bd35ee0d4d35d236a9cee55cb70b75f03ddd2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 28 Jan 2019 16:35:20 +0200 Subject: [PATCH] Fixes tag selector toggling via hotkey leaving gray area. Closes #1629 --- chrome/content/zotero/zoteroPane.js | 2 +- scss/components/_tag-selector.scss | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index f66afa2c46..7b8e8d2b3b 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1089,7 +1089,7 @@ var ZoteroPane = new function() this.toggleTagSelector = Zotero.Promise.coroutine(function* () { - var tagSelector = document.getElementById('zotero-tag-selector'); + var tagSelector = document.getElementById('zotero-tag-selector-container'); var showing = tagSelector.getAttribute('collapsed') == 'true'; tagSelector.setAttribute('collapsed', !showing); diff --git a/scss/components/_tag-selector.scss b/scss/components/_tag-selector.scss index c56778ce0b..29d371e0d4 100644 --- a/scss/components/_tag-selector.scss +++ b/scss/components/_tag-selector.scss @@ -80,13 +80,12 @@ display: flex; } +#zotero-tag-selector-container[collapsed=true] { + visibility: collapse; +} + #zotero-tag-selector { min-height: 100px; width: 100%; display: flex; } - -#zotero-tag-selector[collapsed=true] { - visibility: collapse; -} -