mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Scroll to notification settings when opened (for mobile)
This commit is contained in:
parent
54c06584a8
commit
948e10544d
@ -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>
|
||||
|
||||
@ -71,6 +71,11 @@ export default {
|
||||
})),
|
||||
]
|
||||
},
|
||||
mounted() {
|
||||
document.getElementById('settings-content').scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({
|
||||
setCurrentUser: 'auth/SET_USER',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user