Skip to content

Commit b369f8f

Browse files
committed
style: minor UX
1 parent 811f918 commit b369f8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/frontend/app/layouts/default.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const head = useLocaleHead({
77
const title = computed(() => route.meta.title && t(route.meta.title))
88
99
const windowsScroll = useWindowScroll()
10+
useEventListener('resize', () => { windowsScroll.measure() })
11+
watch(() => route.name, () => { windowsScroll.measure() })
1012
</script>
1113

1214
<template>

0 commit comments

Comments
 (0)