chore: cleanup

This commit is contained in:
Erik Tiekstra
2024-08-26 08:52:32 +02:00
parent f1242e69e3
commit d1a2175804
45 changed files with 70 additions and 324 deletions

View File

@@ -20,15 +20,6 @@ function hidesContents(element: HTMLElement) {
// Otherwise we need to check some styles
const style = window.getComputedStyle(element)
console.log({
element,
zeroSize,
display: style.display,
overflow: style.overflow,
returns:
style.getPropertyValue("display") === "none" ||
(zeroSize && style.getPropertyValue("overflow") !== "visible"),
})
return (
style.getPropertyValue("display") === "none" ||
(zeroSize && style.getPropertyValue("overflow") !== "visible")