forked from Mirrors/gomuks
web/emojipicker: fix root margin for category underlining
This commit is contained in:
parent
170e4cdae8
commit
24836f5006
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ const useCategoryUnderline = () => {
|
||||||
cat.classList.remove("visible")
|
cat.classList.remove("visible")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
rootMargin: `-8px 0px 0px 0px`,
|
||||||
|
root: lists.parentElement,
|
||||||
})
|
})
|
||||||
for (const cat of lists.getElementsByClassName("emoji-category")) {
|
for (const cat of lists.getElementsByClassName("emoji-category")) {
|
||||||
observer.observe(cat)
|
observer.observe(cat)
|
||||||
|
|
Loading…
Add table
Reference in a new issue