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 {
|
&.sb {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -2447,8 +2447,11 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
|
|||||||
let rect = element.getBoundingClientRect();
|
let rect = element.getBoundingClientRect();
|
||||||
let marginHeight = 0;
|
let marginHeight = 0;
|
||||||
if (listItem && !window.siyuan.config.editor.rtl) {
|
if (listItem && !window.siyuan.config.editor.rtl) {
|
||||||
rect = listItem.firstElementChild.getBoundingClientRect();
|
const relTempRect = listItem.firstElementChild.getBoundingClientRect();
|
||||||
space = 0;
|
if (relTempRect.right <= rect.right) {
|
||||||
|
rect = relTempRect
|
||||||
|
space = 0;
|
||||||
|
}
|
||||||
} else if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed") {
|
} else if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed") {
|
||||||
rect = nodeElement.getBoundingClientRect();
|
rect = nodeElement.getBoundingClientRect();
|
||||||
space = 0;
|
space = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user