mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-13 06:39:08 +01:00
also hide keep for notice toasts
This commit is contained in:
parent
5208f9a298
commit
89f9030643
1 changed files with 1 additions and 1 deletions
2
main.ts
2
main.ts
|
@ -114,7 +114,7 @@ export class KeepView extends ItemView {
|
|||
}
|
||||
|
||||
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++) {
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue