1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

fix: fixes mobile menu animation and flex (#3500)

This commit is contained in:
Amir Raminfar
2025-01-02 11:04:12 -08:00
committed by GitHub
parent 0f9071944f
commit 7f12f01267
3 changed files with 7 additions and 11 deletions

View File

@@ -18,8 +18,8 @@
</div> </div>
<transition name="fade"> <transition name="fade">
<div v-show="show" class="h-[calc(100vh-60px)] overflow-auto"> <div v-show="show" class="flex h-[calc(100vh-60px)] overflow-auto">
<SideMenu /> <SideMenu class="flex-1" />
</div> </div>
</transition> </transition>
</nav> </nav>
@@ -35,17 +35,13 @@ watch(route, () => {
}); });
</script> </script>
<style scoped lang="postcss"> <style scoped lang="postcss">
li.exited {
@apply opacity-50;
}
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {
@apply transition-opacity; @apply transition-opacity;
} }
.fade-enter-active .menu, .fade-enter-active > div,
.fade-leave-active .menu { .fade-leave-active > div {
@apply transition-transform; @apply transition-transform;
} }
@@ -54,9 +50,9 @@ li.exited {
@apply opacity-0; @apply opacity-0;
} }
.fade-enter-from .menu, .fade-enter-from > div,
.fade-leave-to .menu { .fade-leave-to > div {
@apply -translate-y-2; @apply -translate-y-10;
} }
.logo { .logo {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB