From ec3529106096b0a115c955e832bccdec1d91a669 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 21 Aug 2021 06:11:56 -0400 Subject: [PATCH] Decrease item tree indent Roughly center child item icons between the parent item icon and text, which looks a bit less awkward than the previous tree's positioning. An alternative would be to align with the beginning of the parent item text (a value of 21), but that's a bit spaced out, at least until we have multiple levels with additional twisties. --- chrome/content/zotero/itemTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/itemTree.jsx b/chrome/content/zotero/itemTree.jsx index 3b6912e0c1..004cccc404 100644 --- a/chrome/content/zotero/itemTree.jsx +++ b/chrome/content/zotero/itemTree.jsx @@ -38,7 +38,7 @@ const { Cc, Ci, Cu } = require('chrome'); Cu.import("resource://gre/modules/osfile.jsm"); const TYPING_TIMEOUT = 1000; -const CHILD_INDENT = 20; +const CHILD_INDENT = 12; const COLORED_TAGS_RE = new RegExp("^[0-" + Zotero.Tags.MAX_COLORED_TAGS + "]{1}$"); const COLUMN_PREFS_FILEPATH = OS.Path.join(Zotero.Profile.dir, "treePrefs.json");