Item Tree: Fix column dividers not aligned for second-level items

Closes #2605
This commit is contained in:
Adomas Venčkauskas 2022-05-10 13:52:32 +03:00
parent aa483f579f
commit a406e62fd3

View file

@ -2732,11 +2732,7 @@ var ItemTree = class ItemTree extends LibraryTree {
// Set depth indent // Set depth indent
const depth = this.getLevel(index); const depth = this.getLevel(index);
let firstChildIndent = 0; span.firstChild.style.paddingInlineStart = (CHILD_INDENT * depth) + 'px';
if (column.ordinal == 0) {
firstChildIndent = 5;
}
span.style.paddingInlineStart = ((CHILD_INDENT * depth) + firstChildIndent) + 'px';
return span; return span;
} }