🎨 Fix space excess below footer (#522)

This commit is contained in:
Alicia Sykes 2022-03-27 20:33:50 +01:00
parent e616d9043f
commit 730a67435e
1 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<div id="dashy">
<div id="dashy" :style="topLevelStyleModifications">
<EditModeTopBanner v-if="isEditMode" />
<LoadingScreen :isLoading="isLoading" v-if="shouldShowSplash" />
<Header :pageInfo="pageInfo" />
@ -72,6 +72,17 @@ export default {
isEditMode() {
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: {
/* Injects the users custom CSS as a style tag */