Scroll to notification settings when opened (for mobile)

This commit is contained in:
Maximilian Harz 2025-04-08 17:52:06 +02:00
parent 54c06584a8
commit 948e10544d
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<ds-flex-item :width="{ base: '100%', md: '200px' }">
<ds-menu :routes="routes" :is-exact="() => true" />
</ds-flex-item>
<ds-flex-item :width="{ base: '100%', md: 1 }">
<ds-flex-item :width="{ base: '100%', md: 1 }" id="settings-content">
<transition name="slide-up" appear>
<nuxt-child />
</transition>

View File

@ -71,6 +71,11 @@ export default {
})),
]
},
mounted() {
document.getElementById('settings-content').scrollIntoView({
behavior: 'smooth',
})
},
methods: {
...mapMutations({
setCurrentUser: 'auth/SET_USER',