Skip to content

Commit

Permalink
fix indentation on data tree with no branch element
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Jul 23, 2023
1 parent 191b2a9 commit 112e39d
Show file tree
Hide file tree
Showing 26 changed files with 78 additions and 12 deletions.
5 changes: 5 additions & 0 deletions dist/css/tabulator.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_bootstrap3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap3.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_bootstrap4.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap4.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_bootstrap5.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap5.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_bulma.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bulma.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_materialize.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_materialize.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_midnight.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_midnight.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_modern.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_modern.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_semanticui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_semanticui.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_simple.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_simple.css.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/css/tabulator_site.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/tabulator_site.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4237,6 +4237,9 @@ class DataTree extends Module{
this.branchEl = options.dataTreeBranchElement;
}
}
}else {
this.branchEl = document.createElement("div");
this.branchEl.classList.add("tabulator-data-tree-branch-empty");
}

if(options.dataTreeCollapseElement){
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/js/modules/DataTree/DataTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class DataTree extends Module{
this.branchEl = options.dataTreeBranchElement;
}
}
}else{
this.branchEl = document.createElement("div");
this.branchEl.classList.add("tabulator-data-tree-branch-empty");
}

if(options.dataTreeCollapseElement){
Expand Down
5 changes: 5 additions & 0 deletions src/scss/tabulator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ $footerActiveColor:#d00 !default; //footer bottom active text color
}
}
}

.tabulator-data-tree-branch-empty{
display:inline-block;
width:7px;
}

.tabulator-data-tree-branch{
display:inline-block;
Expand Down

0 comments on commit 112e39d

Please sign in to comment.