mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
don't know why that was like that oops
This commit is contained in:
parent
a4b0c5a1fa
commit
af8460e90a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue