web/emojipicker: fix root margin for category underlining

This commit is contained in:
Tulir Asokan 2024-12-21 17:55:54 +02:00
parent 170e4cdae8
commit 24836f5006

View file

@ -38,6 +38,9 @@ const useCategoryUnderline = () => {
cat.classList.remove("visible")
}
}
}, {
rootMargin: `-8px 0px 0px 0px`,
root: lists.parentElement,
})
for (const cat of lists.getElementsByClassName("emoji-category")) {
observer.observe(cat)