Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify bottom nav cutting content

My bottom nav is cutting the content in my body, I've tried to put if fixed but then it just goes right down to the bottom

This is how it looks right now:

enter image description here

This is my code, I can't add the code to this question because it won't show u, but this is my bottom nav code

This is how the code looks:

enter image description here

like image 730
DevonteZ STL Avatar asked Dec 05 '18 18:12

DevonteZ STL


2 Answers

Wrap your content into <v-content></v-content> element and add app property to <v-bottom-nav> as mentioned by Traxo.
Working example: https://codepen.io/anon/pen/YRoexV

like image 187
joshas Avatar answered Oct 25 '22 23:10

joshas


Since the release v2.3.0 https://github.com/vuetifyjs/vuetify/releases/tag/v2.3.0

v-content is now v-main, so the new way to structure this is something like this:

App.vue:

<template>
  <v-app>

    <AppBar/>

    <v-main>
      <router-view></router-view>
    </v-main>

    <BottomNavigation/>

  </v-app>
</template>

BottomNavigation.vue:

<template>
  <v-container>
  <v-bottom-navigation
    fixed
    app
  >
    <v-btn>
      <span>Recents</span>
      <v-icon>mdi-history</v-icon>
    </v-btn>

    <v-btn>
      <span>Favorites</span>
      <v-icon>mdi-heart</v-icon>
    </v-btn>

    <v-btn>
      <span>Nearby</span>
      <v-icon>mdi-map-marker</v-icon>
    </v-btn>
  </v-bottom-navigation>
  </v-container>
</template>
like image 43
baermathias Avatar answered Oct 25 '22 21:10

baermathias