mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
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")
|
||||
}
|
||||
}
|
||||
}, {
|
||||
rootMargin: `-8px 0px 0px 0px`,
|
||||
root: lists.parentElement,
|
||||
})
|
||||
for (const cat of lists.getElementsByClassName("emoji-category")) {
|
||||
observer.observe(cat)
|
||||
|
|
Loading…
Add table
Reference in a new issue