From 63c532398b2ed0366d00ea9fc016a693ae9f6390 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:53:52 +0800 Subject: [PATCH] Fix sidenav default buttons display bug --- chrome/content/zotero/elements/itemPaneSidenav.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/elements/itemPaneSidenav.js b/chrome/content/zotero/elements/itemPaneSidenav.js index a9451f21bf..a1539e995c 100644 --- a/chrome/content/zotero/elements/itemPaneSidenav.js +++ b/chrome/content/zotero/elements/itemPaneSidenav.js @@ -131,7 +131,7 @@ this._container?.removeEventListener('scroll', this._handleContainerScroll); this._container = val; this._container.addEventListener('scroll', this._handleContainerScroll); - this.render(); + this.render(true); } get contextNotesPane() { @@ -421,9 +421,9 @@ this.render(); } - render() { + render(force = false) { // TEMP: only render sidenav when pane is visible - if (this.container.id === "zotero-view-item" + if (!force && this.container.id === "zotero-view-item" && document.querySelector("#zotero-item-pane-content").selectedIndex !== "1" ) { return;