mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* Scroll to notification settings when opened (for mobile) * scroll to settings content when clicking on menu entry * Scroll to settings content on mobile and fix weird loading state * Add fail-safety * Fix linting
14 lines
252 B
JavaScript
14 lines
252 B
JavaScript
export default {
|
|
mounted() {
|
|
if (document.documentElement.clientWidth >= 600) return
|
|
|
|
const content = document.getElementById('settings-content')
|
|
|
|
if (!content) return
|
|
|
|
content.scrollIntoView({
|
|
behavior: 'smooth',
|
|
})
|
|
},
|
|
}
|