fix crash in mobile nav

This commit is contained in:
Henry Jameson 2026-06-30 03:22:20 +03:00
commit 142e8cbf2f
2 changed files with 1 additions and 3 deletions

View file

@ -152,9 +152,6 @@ const MobileNav = {
}, },
onScroll({ target: { scrollTop, clientHeight, scrollHeight } }) { onScroll({ target: { scrollTop, clientHeight, scrollHeight } }) {
this.notificationsAtTop = scrollTop > 0 this.notificationsAtTop = scrollTop > 0
if (scrollTop + clientHeight >= scrollHeight) {
this.$refs.notifications.fetchOlderNotifications()
}
}, },
}, },
watch: { watch: {

View file

@ -94,6 +94,7 @@
/> />
</button> </button>
</div> </div>
<!-- Notifications teleport target -->
<div <div
id="mobile-notifications" id="mobile-notifications"
ref="mobileNotifications" ref="mobileNotifications"