mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
update
- Added if statement to remove efy sidebar when embed - Replaced bottom placement mechanic of footer
This commit is contained in:
parent
f85fbd6dc4
commit
342bed1f13
2 changed files with 15 additions and 10 deletions
22
src/App.vue
22
src/App.vue
|
@ -1,15 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<NavBar />
|
<div class="flex flex-col h-[calc(100vh_-_32rem)] justify-between">
|
||||||
<div class="pp-base min-h-screen reset">
|
<div>
|
||||||
<router-view v-slot="{ Component }">
|
<NavBar />
|
||||||
<keep-alive :max="5">
|
<div class="pp-base reset">
|
||||||
<component :is="Component" :key="$route.fullPath" />
|
<router-view v-slot="{ Component }">
|
||||||
</keep-alive>
|
<keep-alive :max="5">
|
||||||
</router-view>
|
<component :is="Component" :key="$route.fullPath" />
|
||||||
</div>
|
</keep-alive>
|
||||||
<label>
|
</router-view>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<FooterComponent />
|
<FooterComponent />
|
||||||
</label>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue