mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
597ec6cacf
commit
9c8f410d32
5 changed files with 27 additions and 40 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue