- Added if statement to remove efy sidebar when embed
- Replaced bottom placement mechanic of footer
This commit is contained in:
SubTeno 2022-10-13 00:07:44 +00:00
parent f85fbd6dc4
commit 342bed1f13
2 changed files with 15 additions and 10 deletions

View file

@ -1,15 +1,17 @@
<template>
<NavBar />
<div class="pp-base min-h-screen reset">
<router-view v-slot="{ Component }">
<keep-alive :max="5">
<component :is="Component" :key="$route.fullPath" />
</keep-alive>
</router-view>
</div>
<label>
<div class="flex flex-col h-[calc(100vh_-_32rem)] justify-between">
<div>
<NavBar />
<div class="pp-base reset">
<router-view v-slot="{ Component }">
<keep-alive :max="5">
<component :is="Component" :key="$route.fullPath" />
</keep-alive>
</router-view>
</div>
</div>
<FooterComponent />
</label>
</div>
</template>
<style>

View file

@ -281,6 +281,9 @@ export default {
},
},
mounted() {
if (this.isEmbed) {
document.querySelectorAll("[efy_sidebar_btn_open]")[0].style.display = "none";
}
// check screen size
if (window.innerWidth >= 1024) {
this.isMobile = false;