Skip to content

Commit 7f12f01

Browse files
authored
fix: fixes mobile menu animation and flex (#3500)
1 parent 0f90719 commit 7f12f01

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

assets/components/common/MobileMenu.vue

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</div>
1919

2020
<transition name="fade">
21-
<div v-show="show" class="h-[calc(100vh-60px)] overflow-auto">
22-
<SideMenu />
21+
<div v-show="show" class="flex h-[calc(100vh-60px)] overflow-auto">
22+
<SideMenu class="flex-1" />
2323
</div>
2424
</transition>
2525
</nav>
@@ -35,17 +35,13 @@ watch(route, () => {
3535
});
3636
</script>
3737
<style scoped lang="postcss">
38-
li.exited {
39-
@apply opacity-50;
40-
}
41-
4238
.fade-enter-active,
4339
.fade-leave-active {
4440
@apply transition-opacity;
4541
}
4642
47-
.fade-enter-active .menu,
48-
.fade-leave-active .menu {
43+
.fade-enter-active > div,
44+
.fade-leave-active > div {
4945
@apply transition-transform;
5046
}
5147
@@ -54,9 +50,9 @@ li.exited {
5450
@apply opacity-0;
5551
}
5652
57-
.fade-enter-from .menu,
58-
.fade-leave-to .menu {
59-
@apply -translate-y-2;
53+
.fade-enter-from > div,
54+
.fade-leave-to > div {
55+
@apply -translate-y-10;
6056
}
6157
6258
.logo {
1 Byte
Loading
1 Byte
Loading

0 commit comments

Comments
 (0)