mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-29 17:28:39 +01:00
Update:Remove back arrow in appbar
This commit is contained in:
parent
290340a385
commit
f51a31c8ca
@ -2,11 +2,13 @@
|
|||||||
<div class="w-full h-16 bg-primary relative">
|
<div class="w-full h-16 bg-primary relative">
|
||||||
<div id="appbar" class="absolute top-0 bottom-0 left-0 w-full h-full px-2 md:px-6 py-1 z-50">
|
<div id="appbar" class="absolute top-0 bottom-0 left-0 w-full h-full px-2 md:px-6 py-1 z-50">
|
||||||
<div class="flex h-full items-center">
|
<div class="flex h-full items-center">
|
||||||
<img v-if="!showBack" src="/icon48.png" class="w-10 h-10 md:w-12 md:h-12 mr-4" />
|
<nuxt-link to="/">
|
||||||
<a v-if="showBack" @click="back" class="rounded-full h-12 w-12 flex items-center justify-center hover:bg-white hover:bg-opacity-10 mr-4 cursor-pointer">
|
<img src="/icon48.png" class="w-10 h-10 md:w-12 md:h-12 mr-4" />
|
||||||
<span class="material-icons text-4xl text-white">arrow_back</span>
|
</nuxt-link>
|
||||||
</a>
|
|
||||||
<h1 class="text-2xl font-book mr-6 hidden lg:block">audiobookshelf</h1>
|
<nuxt-link to="/">
|
||||||
|
<h1 class="text-2xl font-book mr-6 hidden lg:block hover:underline">audiobookshelf</h1>
|
||||||
|
</nuxt-link>
|
||||||
|
|
||||||
<ui-libraries-dropdown />
|
<ui-libraries-dropdown />
|
||||||
|
|
||||||
@ -94,9 +96,6 @@ export default {
|
|||||||
isHome() {
|
isHome() {
|
||||||
return this.$route.name === 'library-library'
|
return this.$route.name === 'library-library'
|
||||||
},
|
},
|
||||||
showBack() {
|
|
||||||
return this.$route.name !== 'library-library-bookshelf-id' && !this.isHome
|
|
||||||
},
|
|
||||||
user() {
|
user() {
|
||||||
return this.$store.state.user.user
|
return this.$store.state.user.user
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user