Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] Rightside Navigation Drawer on same level as app bar #20917

Open
derHodrig opened this issue Jan 24, 2025 · 2 comments · May be fixed by #20918
Open

[Documentation] Rightside Navigation Drawer on same level as app bar #20917

derHodrig opened this issue Jan 24, 2025 · 2 comments · May be fixed by #20918

Comments

@derHodrig
Copy link

derHodrig commented Jan 24, 2025

Problem to solve

Imagine a design like:
navigation drawer | app bar | navigation drawer

In vuetify 2 it was possible via clipped left and clipped right on app bar I think. In vuetify 3 this is not possible this way.
Navigation Drawers have the location property.
Okay lets assume you have the following code

<template>
  <v-app>
    <v-navigation-drawer>
      <div class="text-center px-2 pt-2">Left Drawer</div>
    </v-navigation-drawer>

    <v-app-bar title="App Bar" />

    <v-navigation-drawer location="right">
      <div class="text-center px-2 pt-2">Right Drawer</div>
    </v-navigation-drawer>
  </v-app>
</template>

This is not the expected design. For me that felt the natural way of doing it. So i tried many workarounds with manipulating styles and so on but non worked.

The solution is simple...

<template>
  <v-app>
    <v-navigation-drawer>
      <div class="text-center px-2 pt-2">Left Drawer</div>
    </v-navigation-drawer>

    <!-- Put the right drawer BEFORE the app bar -->
    <v-navigation-drawer location="right">
      <div class="text-center px-2 pt-2">Right Drawer</div>
    </v-navigation-drawer>

    <v-app-bar title="App Bar" />
  </v-app>
</template>

That will result in the expected design

Proposed solution

My Request is to put exactly this solution as on of the examples in the navigation drawer docs page and/ or in the wireframes documentation. I saw on discord some others also struggle with that issue.

This will solve #19809

https://play.vuetifyjs.com/#eNrNUj1PAzEM/SsmMyZSR3RUAjEysXIMJuf2IuVyUc65FiH+O25aPgY6tFMXy5bt9/ys9/JhpuzsfUo3c2FzaxrhIQUSXrYRoJmRUqppLSLNfk3ix4hdpg3nQ0ubnZ/BBZqmu9YIbwUdR+EMaYsLSIKL1iyfeCXwWBcbqwvfwPZ/5OO0EEZXayXLft2Lgp90yfNu6ZxT9B34RhnES2Al0M/BA+XWgP0du0KEEt04DMoMfgXvY4ENaV6PhYOIEjvOkb30ID2DQoNC/+i4BN27HuLeCzqyN0Nj/5jEfF7HEkINr18SVMSS

@derHodrig derHodrig changed the title [Documentation] Rightside Navigation Drawer on same level as app bar docs(vNavigationDrawer) Rightside Navigation Drawer on same level as app bar Jan 24, 2025
@derHodrig derHodrig changed the title docs(vNavigationDrawer) Rightside Navigation Drawer on same level as app bar docs(vNavigationDrawer): Rightside Navigation Drawer on same level as app bar Jan 24, 2025
@derHodrig derHodrig changed the title docs(vNavigationDrawer): Rightside Navigation Drawer on same level as app bar [Documentation] Rightside Navigation Drawer on same level as app bar Jan 24, 2025
@KaelWD
Copy link
Member

KaelWD commented Jan 24, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants