From eb97a7e67b87145c45b67af517a6b340c89956b6 Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 22 Nov 2020 18:14:20 +0200 Subject: [PATCH] Fix footer --- src/layouts/Default.vue | 48 +++++++++++++++++++-------------- src/layouts/partials/Navbar.vue | 6 ++++- src/pages/Index.vue | 29 ++++++++++---------- src/pages/News.vue | 36 ++++++++++++++----------- src/templates/Search.vue | 14 +++++++--- 5 files changed, 78 insertions(+), 55 deletions(-) diff --git a/src/layouts/Default.vue b/src/layouts/Default.vue index 31fab9ac8..874a25722 100644 --- a/src/layouts/Default.vue +++ b/src/layouts/Default.vue @@ -1,8 +1,16 @@ @@ -16,41 +24,41 @@ query { \ No newline at end of file diff --git a/src/layouts/partials/Navbar.vue b/src/layouts/partials/Navbar.vue index 3ddcc4505..42e62228f 100644 --- a/src/layouts/partials/Navbar.vue +++ b/src/layouts/partials/Navbar.vue @@ -200,7 +200,7 @@ export default { headerHeight: 0, isOpen: false, search: "", - open: false + open: false, }; }, @@ -248,4 +248,8 @@ input:focus, button:focus { outline: 0; } + +.inset-0 { + z-index: 999; +} \ No newline at end of file diff --git a/src/pages/Index.vue b/src/pages/Index.vue index 259f43270..8bc946e08 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -1,16 +1,16 @@ @@ -22,17 +22,16 @@ export default { metaInfo: { title: "Home", }, - + computed: { + contentHeight() { + return window.innerHeight - 128; + }, + }, components: { VueMarkdown, }, }; - > diff --git a/src/pages/News.vue b/src/pages/News.vue index d0b16ac64..e5d3ba75c 100644 --- a/src/pages/News.vue +++ b/src/pages/News.vue @@ -1,7 +1,10 @@ @@ -62,12 +65,15 @@ export default { }, components: { PostListItem, - Pagination + Pagination, }, computed: { - baseurl: function() { - return "" - } + baseurl: function () { + return ""; + }, + contentHeight() { + return window.innerHeight - 160; + }, }, }; diff --git a/src/templates/Search.vue b/src/templates/Search.vue index 49549fa31..78ebf88cc 100644 --- a/src/templates/Search.vue +++ b/src/templates/Search.vue @@ -1,6 +1,9 @@