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

View file

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