This commit is contained in:
parent
58032e538c
commit
1a77853f4c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue