mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Mobile UI adjustments
This commit is contained in:
parent
18a095c6e4
commit
70c5db4534
14 changed files with 50 additions and 213 deletions
|
@ -1,5 +1,7 @@
|
|||
|
||||
export const state = () => ({
|
||||
isMobile: false,
|
||||
isMobileLandscape: false,
|
||||
showBatchUserCollectionModal: false,
|
||||
showUserCollectionsModal: false,
|
||||
showEditCollectionModal: false,
|
||||
|
@ -7,15 +9,13 @@ export const state = () => ({
|
|||
showBookshelfTextureModal: false
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
export const getters = {}
|
||||
|
||||
export const mutations = {
|
||||
updateWindowSize(state, { width, height }) {
|
||||
state.isMobile = width < 768 || height < 768
|
||||
state.isMobileLandscape = state.isMobile && height > width
|
||||
},
|
||||
setShowUserCollectionsModal(state, val) {
|
||||
state.showBatchUserCollectionModal = false
|
||||
state.showUserCollectionsModal = val
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue