mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-19 16:49:39 +00:00
Merge e49e8ce8bc into 626596b192
This commit is contained in:
commit
619f2ff262
2 changed files with 24 additions and 1 deletions
|
|
@ -250,3 +250,12 @@ Bookshelf Label
|
||||||
.abs-btn:disabled::before {
|
.abs-btn:disabled::before {
|
||||||
background-color: rgba(0, 0, 0, 0.2);
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Padding for toastification toasts on the bottom to not cover media player*/
|
||||||
|
.media-player .Vue-Toastification__toast.toast-mb-40 {
|
||||||
|
margin-bottom: calc(var(--spacing) * 40);
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-player .Vue-Toastification__toast.toast-mb-48 {
|
||||||
|
margin-bottom: calc(var(--spacing) * 48);
|
||||||
|
}
|
||||||
|
|
@ -49,6 +49,13 @@ export default {
|
||||||
|
|
||||||
this.$store.commit('globals/resetSelectedMediaItems', [])
|
this.$store.commit('globals/resetSelectedMediaItems', [])
|
||||||
this.updateBodyClass()
|
this.updateBodyClass()
|
||||||
|
},
|
||||||
|
'$store.state.streamLibraryItem'(newVal) {
|
||||||
|
if (newVal) {
|
||||||
|
document.body.classList.add('media-player')
|
||||||
|
} else {
|
||||||
|
document.body.classList.remove('media-player')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -93,6 +100,7 @@ export default {
|
||||||
const toastUpdateOptions = {
|
const toastUpdateOptions = {
|
||||||
content: content,
|
content: content,
|
||||||
options: {
|
options: {
|
||||||
|
toastClassName: 'toast-mb-48 lg:toast-mb-40',
|
||||||
timeout: timeout,
|
timeout: timeout,
|
||||||
type: type,
|
type: type,
|
||||||
closeButton: false,
|
closeButton: false,
|
||||||
|
|
@ -105,7 +113,13 @@ export default {
|
||||||
}
|
}
|
||||||
this.$toast.update(this.socketConnectionToastId, toastUpdateOptions, false)
|
this.$toast.update(this.socketConnectionToastId, toastUpdateOptions, false)
|
||||||
} else {
|
} else {
|
||||||
this.socketConnectionToastId = this.$toast[type](content, { position: 'bottom-center', timeout: timeout, closeButton: false, closeOnClick: timeout !== null })
|
this.socketConnectionToastId = this.$toast[type](content, {
|
||||||
|
toastClassName: 'toast-mb-48 lg:toast-mb-40',
|
||||||
|
position: 'bottom-center',
|
||||||
|
timeout: timeout,
|
||||||
|
closeButton: false,
|
||||||
|
closeOnClick: timeout !== null
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
connect() {
|
connect() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue