Make layout expand to fill height of body

This commit is contained in:
Garrett Mills 2022-04-09 12:35:36 -05:00
parent 2c059a655e
commit 2fd0107197
3 changed files with 9 additions and 12 deletions

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<body style="display: flex; height: 100%; min-height: 100vh; flex-direction: column">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

View File

@ -19,13 +19,9 @@ import { MathPage } from "./support/page";
</div>
</v-app-bar>
<v-main>
<v-card elevation="0" height="h-100">
<router-view />
</v-card>
</v-main>
<div style="margin-top: 30px"> <!-- Account for the navbar height -->
<router-view/>
</div>
</v-app>
</template>
@ -35,8 +31,9 @@ import { MathPage } from "./support/page";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
display: flex;
flex-direction: column;
flex: 1;
}
.links {
color: #fff;

View File

@ -14,8 +14,8 @@ const vuetify = createVuetify({
components,
directives,
theme: {
defaultTheme: 'dark'
}
defaultTheme: 'dark',
},
}) // Replaces new Vuetify(...)
app.use(vuetify)