Vanessa 2024-09-05 19:34:34 +08:00
parent 58032e538c
commit 1a77853f4c

View file

@ -442,7 +442,8 @@ export class Gutter {
private isMatchNode(item: Element) {
const itemRect = item.getBoundingClientRect();
let gutterTop = this.element.getBoundingClientRect().top + 4;
// 原本为4由于 https://github.com/siyuan-note/siyuan/issues/12166 改为 6
let gutterTop = this.element.getBoundingClientRect().top + 6;
if (itemRect.height < Math.floor(window.siyuan.config.editor.fontSize * 1.625) + 8) {
gutterTop = gutterTop - (itemRect.height - this.element.clientHeight) / 2;
}