Answer the question
In order to leave comments, you need to log in
How to limit container width in Vuetify by pushing v-navigation-drawer to it?
What I want to get: a container with one column for content, on the right sidebar aka navigation-drawer. You do not need to use a grid with columns, because the container should occupy the entire width of the screen. It turns out like this:
<v-app>
<v-navigation-drawer app clipped right permanent>...</v-navigation-drawer>
<v-app-bar app clipped-right>...</v-app-bar>
<v-main>
<v-flex class="flex-column fill-height pa-4">
...
</v-flex>
</v-main>
</v-app>
[ . . . . . . . top bar . . . . . . . . ]
[space][....container....][drawer][space]
[ . . . . . . . top bar . . . . . . . . ]
[....container....][...space....][drawer]
Answer the question
In order to leave comments, you need to log in
Came up with a solution in case I can't find anything more elegant.
@media (min-width: 1000px) {
.v-application {
max-width: calc(1000px - 30px);
margin-left: calc((100vw - 1000px) / 2);
}
.v-navigation-drawer--right {
right: calc((100vw - 1000px) / 2);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question