|
@@ -1498,7 +1498,7 @@ export class Gutter {
|
|
(rect.height > Math.floor(window.siyuan.config.editor.fontSize * 1.625) + 8 && rect.height < Math.floor(window.siyuan.config.editor.fontSize * 1.625) * 2 + 8)) {
|
|
(rect.height > Math.floor(window.siyuan.config.editor.fontSize * 1.625) + 8 && rect.height < Math.floor(window.siyuan.config.editor.fontSize * 1.625) * 2 + 8)) {
|
|
marginHeight = (rect.height - this.element.clientHeight) / 2;
|
|
marginHeight = (rect.height - this.element.clientHeight) / 2;
|
|
}
|
|
}
|
|
- this.element.style.top = `${Math.max(rect.top, wysiwyg.parentElement.getBoundingClientRect().top + 16) + marginHeight}px`;
|
|
|
|
|
|
+ this.element.style.top = `${Math.max(rect.top, wysiwyg.parentElement.getBoundingClientRect().top) + marginHeight}px`;
|
|
let left = rect.left - this.element.clientWidth - space;
|
|
let left = rect.left - this.element.clientWidth - space;
|
|
if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed" && this.element.childElementCount === 1) {
|
|
if (nodeElement.getAttribute("data-type") === "NodeBlockQueryEmbed" && this.element.childElementCount === 1) {
|
|
// 嵌入块为列表时
|
|
// 嵌入块为列表时
|