don't know why that was like that oops

This commit is contained in:
Freeplay 2023-02-25 21:49:41 -05:00
parent 5c1ca3ac29
commit 790dcccc6e

View file

@ -169,10 +169,10 @@ onMounted(() => {
}); });
if (el && el.parentElement) { if (el && el.parentElement) {
narrow.value = el.parentElement.offsetWidth < 500; narrow = el.parentElement.offsetWidth < 500;
ro = new ResizeObserver((entries, observer) => { ro = new ResizeObserver((entries, observer) => {
if (el.parentElement && document.body.contains(el)) { if (el.parentElement && document.body.contains(el)) {
narrow.value = el.parentElement.offsetWidth < 500; narrow = el.parentElement.offsetWidth < 500;
} }
}); });
ro.observe(el.parentElement); ro.observe(el.parentElement);