🐛 Fix height of "center" element
This commit is contained in:
25
src/App.vue
25
src/App.vue
@ -24,15 +24,17 @@ function swipeHandler(direction) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TitleBar />
|
<div class="app">
|
||||||
<DateSelector v-show="isDataView" />
|
<TitleBar />
|
||||||
<div class="center" v-touch:swipe="swipeHandler">
|
<DateSelector v-show="isDataView" />
|
||||||
<main>
|
<div class="center" v-touch:swipe="swipeHandler">
|
||||||
<LoadingElement :active="loading" v-show="isDataView" />
|
<main>
|
||||||
<RouterView />
|
<LoadingElement :active="loading" v-show="isDataView" />
|
||||||
</main>
|
<RouterView />
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
<BottomNavbar v-show="$route.name != 'title.login'" />
|
||||||
</div>
|
</div>
|
||||||
<BottomNavbar v-show="$route.name != 'title.login'" />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -52,10 +54,15 @@ body {
|
|||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: auto auto 1fr;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: calc(100vh - 99px);
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow: overlay;
|
overflow: overlay;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ const dayNames = [
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.selector {
|
.selector {
|
||||||
padding: 65px 10px 10px 10px;
|
padding: 15px 10px 10px 10px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 35px 1fr 35px;
|
grid-template-columns: 35px 1fr 35px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -31,7 +31,6 @@ function goBack() {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.titlebar {
|
.titlebar {
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 55px;
|
height: 55px;
|
||||||
background-color: var(--titlebar-color);
|
background-color: var(--titlebar-color);
|
||||||
|
@ -64,7 +64,7 @@ const gitHash = GITVERSION;
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.settings {
|
.settings {
|
||||||
padding: 65px 10px 80px 10px;
|
padding: 15px 10px 80px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
@ -118,7 +118,7 @@ function isCancelled(substitution) {
|
|||||||
background-color: var(--timetable-trust-warning-background);
|
background-color: var(--timetable-trust-warning-background);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
margin-bottom: 10px;
|
margin: 5px 0px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user