fixed some spacing in collectionTree and itemTree

This commit is contained in:
yexingsha 2024-01-11 23:20:34 -06:00 committed by Dan Stillman
parent fc7f8b199e
commit cf241447ab
5 changed files with 12 additions and 7 deletions

View file

@ -32,7 +32,7 @@ const { getCSSIcon } = require('components/icons');
const { getDragTargetOrient } = require('components/utils');
const { Cc, Ci, Cu } = require('chrome');
const CHILD_INDENT = 15;
const CHILD_INDENT = 16;
var CollectionTree = class CollectionTree extends LibraryTree {
static async init(domEl, opts) {

View file

@ -40,7 +40,7 @@ Cu.import("resource://gre/modules/osfile.jsm");
* @typedef {import("./itemTreeColumns.jsx").ItemTreeColumnOptions} ItemTreeColumnOptions
*/
const CHILD_INDENT = 12;
const CHILD_INDENT = 16;
const COLORED_TAGS_RE = new RegExp("^(?:Numpad|Digit)([0-" + Zotero.Tags.MAX_COLORED_TAGS + "]{1})$");
const COLUMN_PREFS_FILEPATH = OS.Path.join(Zotero.Profile.dir, "treePrefs.json");
const ATTACHMENT_STATE_LOAD_DELAY = 150; //ms

View file

@ -41,7 +41,7 @@ $icons: (
}
.virtualized-table-body {
padding: 0 8px;
padding: 0 8px 8px;
}
.cell.primary {
@ -56,7 +56,7 @@ $icons: (
flex-shrink: 1;
text-overflow: ellipsis;
overflow: hidden;
margin-left: 6px;
margin-left: 4px;
}
input.cell-text {

View file

@ -3,7 +3,7 @@
#zotero-items-tree {
.virtualized-table-body, .drag-image-container {
padding: 4px 8px;
padding: 4px 8px 8px;
}
.virtualized-table-header {

View file

@ -47,6 +47,11 @@
flex-grow: 1;
box-sizing: border-box;
&.label {
padding-inline-end: 4px;
}
&.label,
&.first-column {
padding-inline-start: 0;
}
@ -66,7 +71,7 @@
overflow: hidden;
&:not(:first-child) {
margin-inline-start: 5px;
margin-inline-start: 4px;
}
}
@ -205,7 +210,7 @@
}
.spacer-header {
min-width: 6px;
min-width: 0px;
}
}