also hide keep for notice toasts

This commit is contained in:
Ell 2022-03-20 11:57:54 +01:00
parent 5208f9a298
commit 89f9030643

View file

@ -114,7 +114,7 @@ export class KeepView extends ItemView {
} }
private coveredByElement(): boolean { private coveredByElement(): boolean {
let nodes = document.body.querySelectorAll(".modal-bg, .menu"); let nodes = document.body.querySelectorAll(".modal-bg, .menu, .notice");
for (let i = 0; i < nodes.length; i++) { for (let i = 0; i < nodes.length; i++) {
let rect = nodes[i].getBoundingClientRect(); let rect = nodes[i].getBoundingClientRect();
if (rect.left < this.size.right && this.size.left < rect.right && rect.top < this.size.bottom && this.size.top < rect.bottom) if (rect.left < this.size.right && this.size.left < rect.right && rect.top < this.size.bottom && this.size.top < rect.bottom)