Vanessa 2025-02-20 10:33:38 +08:00
parent 2b364857f6
commit f213c55a42
2 changed files with 26 additions and 2 deletions

View File

@ -193,6 +193,27 @@
}
}
&[style*="direction: rtl"] {
.li > .protyle-action,
& > .protyle-action {
right: 0;
left: auto;
direction: rtl;
}
.li > [data-node-id],
& > [data-node-id] {
margin-right: 34px;
margin-left: 0;
}
.li::before,
&::before {
right: 17px;
left: auto;
}
}
&.sb {
display: flex;
flex-direction: column;

View File

@ -2447,8 +2447,11 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
let rect = element.getBoundingClientRect();
let marginHeight = 0;
if (listItem && !window.siyuan.config.editor.rtl) {
rect = listItem.firstElementChild.getBoundingClientRect();
space = 0;
const relTempRect = listItem.firstElementChild.getBoundingClientRect();
if (relTempRect.right <= rect.right) {
rect = relTempRect
space = 0;
}
} else if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed") {
rect = nodeElement.getBoundingClientRect();
space = 0;