This commit is contained in:
Vanessa 2023-03-26 12:01:05 +08:00
parent 597ec6cacf
commit 9c8f410d32
5 changed files with 27 additions and 40 deletions

View file

@ -77,7 +77,7 @@ export class Tree {
let style = "";
if (isMobile()) {
if (item.depth > 0) {
style = `padding-left: ${(item.depth - 1) * 29 + 40}px`;
style = `padding-left: ${(item.depth - 1) * 30 + 44}px`;
}
} else {
style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;
@ -130,7 +130,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
let style = "";
if (isMobile()) {
if (item.depth > 0) {
style = `padding-left: ${(item.depth - 1) * 29 + 40}px`;
style = `padding-left: ${(item.depth - 1) * 30 + 44}px`;
}
} else {
style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;