Skip to content

Commit

Permalink
hide menu button on big screens
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Jul 14, 2024
1 parent 62dcc97 commit 0a14978
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@
{{ menuItem.title }}
</button-link>
</nav>
<dialog-button ref="menuDialog" label="Menu">
<div class="flex flex-col gap-6">
<button-link
v-for="menuItem of menuItems"
:key="menuItem.title"
:to="menuItem.path"
>
{{ menuItem.title }}
</button-link>
</div>
</dialog-button>
<nav class="block lg:hidden">
<dialog-button ref="menuDialog" label="Menu">
<div class="flex flex-col gap-6">
<button-link
v-for="menuItem of menuItems"
:key="menuItem.title"
:to="menuItem.path"
>
{{ menuItem.title }}
</button-link>
</div>
</dialog-button>
</nav>
</header>

<main v-if="!fullscreen" class="px-2 py-4">
Expand Down

0 comments on commit 0a14978

Please sign in to comment.