footer always on bottom

This commit is contained in:
nquidox 2025-10-12 15:12:44 +03:00
parent b12c79fa21
commit c29caf01c8
3 changed files with 37 additions and 18 deletions

View file

@ -8,8 +8,9 @@ import Footer from '@/components/Footer/Footer.vue'
<n-message-provider> <n-message-provider>
<n-dialog-provider> <n-dialog-provider>
<n-notification-provider> <n-notification-provider>
<div class="app-layout">
<NavBar /> <NavBar />
<div class="main-content">
<n-grid <n-grid
responsive="screen" responsive="screen"
item-responsive item-responsive
@ -26,11 +27,13 @@ import Footer from '@/components/Footer/Footer.vue'
<n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" /> <n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" />
</n-grid> </n-grid>
</div>
<Footer />
</div>
</n-notification-provider> </n-notification-provider>
</n-dialog-provider> </n-dialog-provider>
</n-message-provider> </n-message-provider>
</n-config-provider> </n-config-provider>
<Footer />
</template> </template>
<style scoped> <style scoped>

View file

@ -1,5 +1,4 @@
<script setup> <script setup>
</script> </script>
<template> <template>

View file

@ -120,3 +120,20 @@
.link-like-text { .link-like-text {
cursor: pointer; cursor: pointer;
} }
html,
body,
#app {
height: 100%;
margin: 0;
}
.app-layout {
display: flex;
flex-direction: column;
min-height: 100dvh;
}
.main-content {
flex: 1;
}