2021-11-14 19:59:34 -06:00
|
|
|
<template>
|
|
|
|
<div class="w-full h-full">
|
|
|
|
<home-bookshelf-nav-bar />
|
2022-12-07 17:57:42 -06:00
|
|
|
<home-bookshelf-toolbar v-show="!hideToolbar" />
|
|
|
|
<div id="bookshelf-wrapper" class="main-content overflow-y-auto overflow-x-hidden relative" :class="hideToolbar ? 'no-toolbar' : ''">
|
2023-06-04 17:14:26 -05:00
|
|
|
<nuxt-child />
|
2021-11-14 19:59:34 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
2023-06-04 17:14:26 -05:00
|
|
|
return {}
|
2021-11-14 19:59:34 -06:00
|
|
|
},
|
|
|
|
computed: {
|
2022-12-07 17:57:42 -06:00
|
|
|
hideToolbar() {
|
|
|
|
return this.isHome || this.isLatest || this.isPodcastSearch
|
|
|
|
},
|
2021-11-14 19:59:34 -06:00
|
|
|
isHome() {
|
|
|
|
return this.$route.name === 'bookshelf'
|
2022-12-03 17:24:24 -06:00
|
|
|
},
|
|
|
|
isLatest() {
|
|
|
|
return this.$route.name === 'bookshelf-latest'
|
2022-12-07 17:57:42 -06:00
|
|
|
},
|
|
|
|
isPodcastSearch() {
|
2023-12-14 16:25:59 -06:00
|
|
|
return this.$route.name === 'bookshelf-add-podcast'
|
2021-11-14 19:59:34 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.main-content {
|
2021-12-31 16:57:53 -06:00
|
|
|
height: calc(100% - 72px);
|
2021-11-14 19:59:34 -06:00
|
|
|
max-height: calc(100% - 72px);
|
|
|
|
min-height: calc(100% - 72px);
|
2021-12-04 19:56:29 -06:00
|
|
|
max-width: 100vw;
|
2021-11-14 19:59:34 -06:00
|
|
|
}
|
2022-12-07 17:57:42 -06:00
|
|
|
.main-content.no-toolbar {
|
2021-12-31 16:57:53 -06:00
|
|
|
height: calc(100% - 36px);
|
2021-11-14 19:59:34 -06:00
|
|
|
max-height: calc(100% - 36px);
|
|
|
|
min-height: calc(100% - 36px);
|
|
|
|
}
|
|
|
|
</style>
|