This is too fancy, remove it

This commit is contained in:
Jason Zimdars
2025-11-24 15:48:08 -06:00
parent 2f6f4cd3f5
commit 9cc63c6dce
2 changed files with 0 additions and 16 deletions
-12
View File
@@ -1,12 +0,0 @@
export function limitHeightToViewport(el, sizing = true, margin = 64) {
if (!el) return
if (sizing) {
const rect = el.getBoundingClientRect()
const top = Math.max(rect.top, margin)
const max = Math.max(0, window.innerHeight - margin - top)
el.style.maxHeight = `${max}px`
} else {
el.style.maxHeight = ""
}
}