diff --git a/client/components/app/BookShelfToolbar.vue b/client/components/app/BookShelfToolbar.vue index ca820291..46a52d9e 100644 --- a/client/components/app/BookShelfToolbar.vue +++ b/client/components/app/BookShelfToolbar.vue @@ -11,7 +11,7 @@
Series
-{{ numShowing }} {{ entityName }}
{{ name }}
File | -Datetime | -Size | +Datetime | +Size | |
---|---|---|---|---|---|
- /{{ backup.path.replace(/\\/g, '/') }} +/{{ backup.path.replace(/\\/g, '/') }} |
- {{ backup.datePretty }} | -{{ $bytesPretty(backup.fileSize) }} | +{{ backup.datePretty }} | +{{ $bytesPretty(backup.fileSize) }} |
-
+
diff --git a/client/components/ui/Checkbox.vue b/client/components/ui/Checkbox.vue
index b384d018..710fe330 100644
--- a/client/components/ui/Checkbox.vue
+++ b/client/components/ui/Checkbox.vue
@@ -43,7 +43,7 @@ export default {
return classes.join(' ')
},
labelClass() {
- if (this.small) return 'text-sm'
+ if (this.small) return 'text-xs md:text-sm'
return ''
},
svgClass() {
diff --git a/client/layouts/default.vue b/client/layouts/default.vue
index 67727b84..c40f8eae 100644
--- a/client/layouts/default.vue
+++ b/client/layouts/default.vue
@@ -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)
}
}
diff --git a/client/pages/audiobook/_id/index.vue b/client/pages/audiobook/_id/index.vue
index 9ca3dc78..0fc3c8bb 100644
--- a/client/pages/audiobook/_id/index.vue
+++ b/client/pages/audiobook/_id/index.vue
@@ -1,15 +1,15 @@
-
-
+
+
-
-
+
@@ -82,7 +82,7 @@
@@ -73,7 +73,7 @@Book has no audio tracks but has valid ebook files. The e-reader is experimental and can be turned on in config.
+ Your Progress: {{ Math.round(progressPercent * 100) }}% {{ $elapsedPretty(userTimeRemaining) }} remaining
@@ -90,7 +90,7 @@
+
+
-
-
-
Logger +
+
Logger -
+
diff --git a/client/pages/config/stats.vue b/client/pages/config/stats.vue
index 230a4fc1..758827fd 100644
--- a/client/pages/config/stats.vue
+++ b/client/pages/config/stats.vue
@@ -30,7 +30,7 @@
+ Recent Listening Sessionsdiff --git a/client/plugins/init.client.js b/client/plugins/init.client.js index 71e9f87a..33b9bdc8 100644 --- a/client/plugins/init.client.js +++ b/client/plugins/init.client.js @@ -143,6 +143,5 @@ export { export default ({ app }, inject) => { app.$decode = decode app.$encode = encode - // app.$isDev = process.env.NODE_ENV !== 'production' inject('isDev', process.env.NODE_ENV !== 'production') } \ No newline at end of file diff --git a/client/store/globals.js b/client/store/globals.js index d42fa52d..786e6e01 100644 --- a/client/store/globals.js +++ b/client/store/globals.js @@ -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 |