🎨 Fix space excess below footer (#522)
This commit is contained in:
13
src/App.vue
13
src/App.vue
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="dashy">
|
<div id="dashy" :style="topLevelStyleModifications">
|
||||||
<EditModeTopBanner v-if="isEditMode" />
|
<EditModeTopBanner v-if="isEditMode" />
|
||||||
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
|
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
|
||||||
<Header :pageInfo="pageInfo" />
|
<Header :pageInfo="pageInfo" />
|
||||||
@@ -72,6 +72,17 @@ export default {
|
|||||||
isEditMode() {
|
isEditMode() {
|
||||||
return this.$store.state.editMode;
|
return this.$store.state.editMode;
|
||||||
},
|
},
|
||||||
|
topLevelStyleModifications() {
|
||||||
|
const vc = this.visibleComponents;
|
||||||
|
if (!vc.footer && !vc.pageTitle) {
|
||||||
|
return '--footer-height: 1rem;';
|
||||||
|
} else if (!vc.footer) {
|
||||||
|
return '--footer-height: 5rem;';
|
||||||
|
} else if (!vc.pageTitle) {
|
||||||
|
return '--footer-height: 4rem;';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/* Injects the users custom CSS as a style tag */
|
/* Injects the users custom CSS as a style tag */
|
||||||
|
|||||||
Reference in New Issue
Block a user