mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 18:10:43 +08:00
This commit is contained in:
parent
2b364857f6
commit
f213c55a42
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user