mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
modify menu position while open
This commit is contained in:
1 parent
385c6bc110
commit
8e7b5f2552
1 file changed
+14
-12
@@ -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>
|
||||||
Reference in new issue
Block a user