don't know why that was like that oops

This commit is contained in:
Freeplay 2023-02-25 21:49:41 -05:00
parent a4b0c5a1fa
commit af8460e90a

View file

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