Skip to content

Commit

Permalink
fix: fixes mobile menu animation and flex (#3500)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Jan 2, 2025
1 parent 0f90719 commit 7f12f01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions assets/components/common/MobileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</div>

<transition name="fade">
<div v-show="show" class="h-[calc(100vh-60px)] overflow-auto">
<SideMenu />
<div v-show="show" class="flex h-[calc(100vh-60px)] overflow-auto">
<SideMenu class="flex-1" />
</div>
</transition>
</nav>
Expand All @@ -35,17 +35,13 @@ watch(route, () => {
});
</script>
<style scoped lang="postcss">
li.exited {
@apply opacity-50;
}
.fade-enter-active,
.fade-leave-active {
@apply transition-opacity;
}
.fade-enter-active .menu,
.fade-leave-active .menu {
.fade-enter-active > div,
.fade-leave-active > div {
@apply transition-transform;
}
Expand All @@ -54,9 +50,9 @@ li.exited {
@apply opacity-0;
}
.fade-enter-from .menu,
.fade-leave-to .menu {
@apply -translate-y-2;
.fade-enter-from > div,
.fade-leave-to > div {
@apply -translate-y-10;
}
.logo {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f12f01

Please sign in to comment.