Skip to content

Commit

Permalink
feat(v-menu): fix responsive menu
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Oct 25, 2021
1 parent 4594a5e commit 2cb871f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/VMenu/VMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const scrollHeight = computed(() => (panel as any).value?.el?.scrollHeight);
mb-1
relative
"
:class="[textColor, mini ? 'justify-center' : '']"
:class="[textColor, mini ? 'justify-start sm:justify-center' : '']"
>
<img v-if="menu.img" :src="menu.img" alt="img icon" class="w-5 h-5" />
<component :is="menu.icon" v-else-if="menu.icon" class="w-5 h-5" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/VMenu/VMenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const props = defineProps({
items-center
text-sm
"
:class="[textColor, mini ? 'justify-center' : '']"
:class="[textColor, mini ? 'justify-start sm:justify-center' : '']"
>
<span class="px-1">
<svg
Expand Down

0 comments on commit 2cb871f

Please sign in to comment.