mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-24 19:19:42 +00:00
Mobile UI adjustments
This commit is contained in:
parent
18a095c6e4
commit
70c5db4534
14 changed files with 50 additions and 213 deletions
|
|
@ -499,12 +499,17 @@ export default {
|
|||
this.$eventBus.$emit('player-hotkey', name)
|
||||
e.preventDefault()
|
||||
}
|
||||
},
|
||||
resize() {
|
||||
this.$store.commit('globals/updateWindowSize', { width: window.innerWidth, height: window.innerHeight })
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
this.initializeSocket()
|
||||
},
|
||||
mounted() {
|
||||
this.resize()
|
||||
window.addEventListener('resize', this.resize)
|
||||
window.addEventListener('keydown', this.keyDown)
|
||||
this.$store.dispatch('libraries/load')
|
||||
|
||||
|
|
@ -527,6 +532,7 @@ export default {
|
|||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.removeEventListener('resize', this.resize)
|
||||
window.removeEventListener('keydown', this.keyDown)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue