mirror of https://github.com/Lissy93/dashy.git
🎨 Fix space excess below footer (#522)
This commit is contained in:
parent
e616d9043f
commit
730a67435e
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 */
|
||||||
|
|
Loading…
Reference in New Issue