advplyr.audiobookshelf-app/pages/bookshelf.vue

36 lines
732 B
Vue
Raw Normal View History

<template>
<div class="w-full h-full">
<home-bookshelf-nav-bar />
<home-bookshelf-toolbar v-show="!isHome" />
2021-12-04 19:56:29 -06:00
<div id="bookshelf-wrapper" class="main-content overflow-y-auto overflow-x-hidden relative" :class="isHome ? 'home-page' : ''">
<nuxt-child />
</div>
</div>
</template>
<script>
export default {
data() {
return {}
},
computed: {
isHome() {
return this.$route.name === 'bookshelf'
}
}
}
</script>
<style>
.main-content {
2021-12-31 16:57:53 -06:00
height: calc(100% - 72px);
max-height: calc(100% - 72px);
min-height: calc(100% - 72px);
2021-12-04 19:56:29 -06:00
max-width: 100vw;
}
.main-content.home-page {
2021-12-31 16:57:53 -06:00
height: calc(100% - 36px);
max-height: calc(100% - 36px);
min-height: calc(100% - 36px);
}
</style>