modify menu position while open

This commit is contained in:
Annie Huang committed 2024-04-06 22:06:48 +08:00
1 parent 385c6bc110
commit 8e7b5f2552
1 file changed
+14 -12
+14 -12
View File
@@ -43,17 +43,19 @@ const toggleMenu = () => {
> >
<component :is="headerComponent" /> <component :is="headerComponent" />
</div> </div>
<button <div :class="{ 'w-full flex justify-end pb-3': menuOpen }">
type="button" <button
class="flex items-center h-5 w-5 rounded-md sm:hidden" type="button"
aria-controls="mobile-menu" class="flex items-center h-5 w-5 rounded-md sm:hidden"
aria-expanded="false" aria-controls="mobile-menu"
@click="toggleMenu" aria-expanded="false"
> @click="toggleMenu"
<font-awesome-icon >
:icon="['fas', 'bars']" <font-awesome-icon
class="text-text-primary h-full w-full" :icon="['fas', 'bars']"
/> class="text-text-primary h-full w-full"
</button> />
</button>
</div>
</div> </div>
</template> </template>