Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VuetifyJS toolbar overlays content as soon as fixed prop gets added

I need to use a fixed toolbar (with an extension). Problem is that The toolbar overlays the content as soon as the fixed prop gets added. How to place the content below the toolbar? CodePen example: https://codepen.io/anon/pen/jpgjyd?&editors=101

<div id="app">
  <v-app id="inspire">
    <v-toolbar
      color="primary"
      dark
      fixed
      extended         
    >
      <v-toolbar-side-icon></v-toolbar-side-icon>
      <v-toolbar-title slot="extension">Title</v-toolbar-title>
      <v-spacer></v-spacer>

      <v-btn icon>
        <v-icon>search</v-icon>
      </v-btn>
    </v-toolbar>

    <v-layout>
    <v-flex xs1 >
      +++ FIRST LINE +++ 
      [lots of text...]
      </v-flex>
        </v-layout>
  </v-app>
</div>
like image 546
Tom Avatar asked Dec 04 '22 19:12

Tom


1 Answers

One solution is adding app to v-toolbar and wrap v-layout inside v-content

<v-toolbar
      app
      color="primary"
      dark
      fixed
      extended         
    >
...
</v-toolbar>
<v-content>
  <v-layout>
  </v-layout>
</v-content>

Demo https://codepen.io/ittus/pen/mGdbeN?editors=1010

References: Vuetify application layout tutorial

like image 58
ittus Avatar answered Dec 06 '22 12:12

ittus