Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
agateblue committed Feb 25, 2022
1 parent 02b09eb commit 864eb31
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,24 @@
</v-main>
<v-bottom-navigation fixed>
<v-spacer></v-spacer>
<v-btn to="/diary">
<v-btn :style="bottomNavBarButtonStyle" to="/diary">
<span>Diary</span>

<v-icon v-text="$icons.mdiBook"></v-icon>
</v-btn>
<v-btn to="/tasks">
<v-btn :style="bottomNavBarButtonStyle" to="/tasks">
<span>Tasks</span>

<v-icon v-text="$icons.mdiCheck"></v-icon>
</v-btn>
<v-btn to="/settings">
<v-btn :style="bottomNavBarButtonStyle" to="/settings">
<span>Settings</span>

<v-icon v-text="$icons.mdiCog"></v-icon>
</v-btn>
<template v-if="$store.state.couchDbUrl">
<v-btn
:style="bottomNavBarButtonStyle"
:loading="isSyncing"
:disabled="isSyncing"
@click.stop.prevent="forceSync"
Expand All @@ -78,7 +79,7 @@
</v-btn>
</template>
<v-spacer></v-spacer>
<v-btn @click="scrollToTop()">
<v-btn :style="bottomNavBarButtonStyle" @click="scrollToTop()">
<v-icon v-text="$icons.mdiChevronUp"></v-icon>
</v-btn>
</v-bottom-navigation>
Expand Down Expand Up @@ -124,6 +125,12 @@ export default {
}
};
},
computed: {
bottomNavBarButtonStyle () {
// until https://github.com/vuetifyjs/vuetify/issues/7933 is fixed
return 'height: 56px; background: transparent;'
}
},
methods: {
async forceSync() {
this.isSyncing = true;
Expand Down

0 comments on commit 864eb31

Please sign in to comment.