📱 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> <template>
<TitleBar /> <TitleBar />
<DateSelector v-show="$route.name != 'Settings' && $route.name != 'Login'" /> <div class="center">
<main> <main>
<LoadingElement <DateSelector
:active="loading" v-show="$route.name != 'Settings' && $route.name != 'Login'"
v-show="$route.name != 'Settings' && $route.name != 'Login'" />
/> <LoadingElement
<RouterView /> :active="loading"
</main> v-show="$route.name != 'Settings' && $route.name != 'Login'"
/>
<RouterView />
</main>
</div>
<BottomNavbar v-show="$route.name != 'Login'" /> <BottomNavbar v-show="$route.name != 'Login'" />
</template> </template>

View File

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

View File

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