From 2db51eb0e5cf2c8bf965f021d5fd2561d0633b57 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 15 Apr 2025 13:01:01 -0500 Subject: [PATCH] Scaffold: Don't collapse item preview sections Fixes sections disappearing when collapsed in the main window's item pane. --- chrome/content/zotero/elements/collapsibleSection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/collapsibleSection.js b/chrome/content/zotero/elements/collapsibleSection.js index 20ebfe0940..1dfa3c575f 100644 --- a/chrome/content/zotero/elements/collapsibleSection.js +++ b/chrome/content/zotero/elements/collapsibleSection.js @@ -372,11 +372,11 @@ } get _disableCollapsing() { - return !!this.closest('panel, menupopup, merge-pane'); + return !!this.closest('panel, menupopup, merge-pane, scaffold-item-preview'); } get _disableSavingOpenState() { - return !!this.closest('merge-pane'); + return !!this.closest('merge-pane, scaffold-item-preview'); } _handleClick = (event) => {