mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 03:59:05 +01:00
feat(views/table): improve alignment for first level + increase indentation
This commit is contained in:
parent
bd840a2421
commit
8b0fdaccf4
@ -153,7 +153,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Align items without children/expander to the ones with. */
|
/* 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;
|
padding-left: 21px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -161,6 +161,7 @@ export default class TableView extends ViewMode<StateInfo> {
|
|||||||
dataTreeStartExpanded: true,
|
dataTreeStartExpanded: true,
|
||||||
dataTreeBranchElement: false,
|
dataTreeBranchElement: false,
|
||||||
dataTreeElementColumn: "title",
|
dataTreeElementColumn: "title",
|
||||||
|
dataTreeChildIndent: 20,
|
||||||
dataTreeExpandElement: `<button class="tree-expand"><span class="bx bx-chevron-right"></span></button>`,
|
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>`
|
dataTreeCollapseElement: `<button class="tree-collapse"><span class="bx bx-chevron-down"></span></button>`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user