feat(views/table): improve alignment for first level + increase indentation

This commit is contained in:
Elian Doran 2025-07-17 14:45:38 +03:00
parent bd840a2421
commit 8b0fdaccf4
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -153,7 +153,8 @@
}
/* Align items without children/expander to the ones with. */
.tabulator-cell > div:first-child + span {
.tabulator-cell > span:first-child, /* 1st level */
.tabulator-cell > div:first-child + span { /* sub-level */
padding-left: 21px;
}

View File

@ -161,6 +161,7 @@ export default class TableView extends ViewMode<StateInfo> {
dataTreeStartExpanded: true,
dataTreeBranchElement: false,
dataTreeElementColumn: "title",
dataTreeChildIndent: 20,
dataTreeExpandElement: `<button class="tree-expand"><span class="bx bx-chevron-right"></span></button>`,
dataTreeCollapseElement: `<button class="tree-collapse"><span class="bx bx-chevron-down"></span></button>`
}