🐛 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>
|
||||
|
||||
<template>
|
||||
<TitleBar />
|
||||
<DateSelector v-show="isDataView" />
|
||||
<div class="center" v-touch:swipe="swipeHandler">
|
||||
<main>
|
||||
<LoadingElement :active="loading" v-show="isDataView" />
|
||||
<RouterView />
|
||||
</main>
|
||||
<div class="app">
|
||||
<TitleBar />
|
||||
<DateSelector v-show="isDataView" />
|
||||
<div class="center" v-touch:swipe="swipeHandler">
|
||||
<main>
|
||||
<LoadingElement :active="loading" v-show="isDataView" />
|
||||
<RouterView />
|
||||
</main>
|
||||
</div>
|
||||
<BottomNavbar v-show="$route.name != 'title.login'" />
|
||||
</div>
|
||||
<BottomNavbar v-show="$route.name != 'title.login'" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@ -52,10 +54,15 @@ body {
|
||||
font-family: var(--font-family);
|
||||
}
|
||||
|
||||
.app {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto 1fr;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: calc(100vh - 99px);
|
||||
overflow-y: auto;
|
||||
overflow: overlay;
|
||||
}
|
||||
|
Reference in New Issue
Block a user