mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-11-24 20:05:41 +01:00
Replace computed with watcher; move css class definitions to app.css
This commit is contained in:
parent
13845a43d6
commit
e49e8ce8bc
@ -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);
|
||||||
|
}
|
||||||
@ -7,7 +7,7 @@
|
|||||||
<Nuxt :key="currentLang" />
|
<Nuxt :key="currentLang" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<app-media-player-container ref="mediaPlayerContainer" :class="{ 'media-player': isShowingMediaPlayer }" />
|
<app-media-player-container ref="mediaPlayerContainer" />
|
||||||
|
|
||||||
<modals-item-edit-modal />
|
<modals-item-edit-modal />
|
||||||
<modals-collections-add-create-modal />
|
<modals-collections-add-create-modal />
|
||||||
@ -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: {
|
||||||
@ -70,14 +77,6 @@ export default {
|
|||||||
},
|
},
|
||||||
appContentMarginLeft() {
|
appContentMarginLeft() {
|
||||||
return this.isShowingSideRail ? 80 : 0
|
return this.isShowingSideRail ? 80 : 0
|
||||||
},
|
|
||||||
isShowingMediaPlayer() {
|
|
||||||
if (this.$store.state.streamLibraryItem) {
|
|
||||||
document.body.classList.add('media-player')
|
|
||||||
} else {
|
|
||||||
document.body.classList.remove('media-player')
|
|
||||||
}
|
|
||||||
return this.$store.state.streamLibraryItem
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -659,14 +658,6 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#app-content {
|
#app-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user