How to center a v-dialog
above the remaining space of the viewport if v-navigation-drawer
is permanent
#16532
Unanswered
frederikheld
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I have the following code
I added some styling to visualize the boundaries of each component.
The code produces the following layout
While the
v-container
is taking up only the remaining space of the viewport (green border) besides the openv-navigation-drawer
and thus leads to a aesthetically centeredv-card
, thev-dialog
takes up the whole viewport (red border) and thus centers thev-card
above the page which looks odd.I played around with the margins, the properties of
v-dialog
and also tried to place thev-navigation-drawer
insidev-main
but nothing changed the result.Is there any way to center the dialog above the content part of the viewport?
I'm using Vuetify 3.
Beta Was this translation helpful? Give feedback.
All reactions