This commit is contained in:
Vanessa 2022-09-24 21:57:16 +08:00
parent 2c2bd2a379
commit fb47ee41ca

View file

@ -295,10 +295,6 @@ export class BlockPanel {
setPosition(this.element, targetRect.left, targetRect.top + targetRect.height + 4, targetRect.height + 12, 8);
}
const maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px";
this.element.style.maxHeight = maxHeight;
if (this.nodeIds.length > 1) {
this.element.style.height = maxHeight;
}
this.element.style.maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px";
}
}