mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-02-01 04:37:55 +01:00
Fix Sidemenu height
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {computed, defineComponent, ref, useRouter, useStore, watch} from "@nuxtjs/composition-api";
|
import {computed, defineComponent, useRouter, useStore} from "@nuxtjs/composition-api";
|
||||||
import {State} from "~/types/types";
|
import {State} from "~/types/types";
|
||||||
|
|
||||||
const PAGE_TYPE = {
|
const PAGE_TYPE = {
|
||||||
@@ -51,7 +51,7 @@ export default defineComponent({
|
|||||||
const toggleMenu = () => {
|
const toggleMenu = () => {
|
||||||
store.commit('TOGGLE_OPENED', !store.state.opened)
|
store.commit('TOGGLE_OPENED', !store.state.opened)
|
||||||
if (store.state.opened) {
|
if (store.state.opened) {
|
||||||
document.getElementById('slider')!.style.maxHeight = window.screen.height + 'px'
|
document.getElementById('slider')!.style.maxHeight = window.innerHeight + 'px'
|
||||||
setTimeout(() => document.getElementById('nav')!.classList.add('z-50'), 300)
|
setTimeout(() => document.getElementById('nav')!.classList.add('z-50'), 300)
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('nav')!.classList.remove('z-50')
|
document.getElementById('nav')!.classList.remove('z-50')
|
||||||
|
|||||||
Reference in New Issue
Block a user