From 4d7c641f7b96777089524453373852bcf9b5ed6b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 4 Jun 2024 11:14:10 -0400 Subject: [PATCH] Libraries & Collections: Make all collections clickable in context pane Fixes #4201 --- chrome/content/zotero/elements/librariesCollectionsBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/librariesCollectionsBox.js b/chrome/content/zotero/elements/librariesCollectionsBox.js index 98d78af27e..3f57c42ac7 100644 --- a/chrome/content/zotero/elements/librariesCollectionsBox.js +++ b/chrome/content/zotero/elements/librariesCollectionsBox.js @@ -138,7 +138,8 @@ import { getCSSIcon } from 'components/icons'; row.append(remove); } - let isCurrent = ZoteroPane.collectionsView.selectedTreeRow?.id == obj.treeViewID; + let isCurrent = Zotero_Tabs.selectedType === 'library' + && ZoteroPane.collectionsView.selectedTreeRow?.id == obj.treeViewID; box.classList.toggle('current', isCurrent); // Disable clicky if this is a context row or we're already in the library/collection it points to