From efc009f724590862e3c64d425aba24c9452f3a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 23 Apr 2021 11:37:49 +0300 Subject: [PATCH] Fix collection tree header alignment on macOS --- chrome/content/zotero/collectionTree.jsx | 7 ++++++- scss/mac/_virtualized-table.scss | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index 527a7a2117..4e359c0b63 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -294,7 +294,12 @@ var CollectionTree = class CollectionTree extends LibraryTree { let twisty; if (this.isContainerEmpty(index)) { twisty = document.createElementNS("http://www.w3.org/1999/xhtml", 'span'); - twisty.classList.add("spacer-twisty"); + if (Zotero.isMac && treeRow.isHeader) { + twisty.classList.add("spacer-header"); + } + else { + twisty.classList.add("spacer-twisty"); + } } else { twisty = getDOMIcon("IconTwisty"); diff --git a/scss/mac/_virtualized-table.scss b/scss/mac/_virtualized-table.scss index 9ffc98232b..78e62e899a 100644 --- a/scss/mac/_virtualized-table.scss +++ b/scss/mac/_virtualized-table.scss @@ -15,6 +15,10 @@ .spacer-twisty { min-width: 19px; } + + .spacer-header { + min-width: 6px; + } } .virtualized-table-body, .drag-image-container{