📱 Boxed layout for larger screens

This commit is contained in:
2022-06-28 22:15:55 +02:00
parent c80a75159d
commit 62858870b4
3 changed files with 23 additions and 8 deletions

View File

@ -9,14 +9,18 @@ import { loading } from "./store";
<template>
<TitleBar />
<DateSelector v-show="$route.name != 'Settings' && $route.name != 'Login'" />
<main>
<LoadingElement
:active="loading"
v-show="$route.name != 'Settings' && $route.name != 'Login'"
/>
<RouterView />
</main>
<div class="center">
<main>
<DateSelector
v-show="$route.name != 'Settings' && $route.name != 'Login'"
/>
<LoadingElement
:active="loading"
v-show="$route.name != 'Settings' && $route.name != 'Login'"
/>
<RouterView />
</main>
</div>
<BottomNavbar v-show="$route.name != 'Login'" />
</template>

View File

@ -23,6 +23,16 @@ body {
font-family: var(--font-family);
}
.center {
display: flex;
justify-content: center;
}
main {
width: 100%;
max-width: 900px;
}
@font-face {
font-family: "sourcesanspro";
font-style: "normal";

View File

@ -42,6 +42,7 @@ import { RouterLink } from "vue-router";
grid-auto-columns: 1fr;
grid-auto-flow: column;
padding: 0px 20px;
max-width: 800px;
}
.entry {