menu no scroll
This commit is contained in:
+11
-8
@@ -1,3 +1,4 @@
|
|||||||
|
B
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, onUnmounted, provide, ref } from "vue";
|
import { onMounted, onUnmounted, provide, ref } from "vue";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
@@ -154,9 +155,7 @@ onMounted(async () => {
|
|||||||
await memeBurnerStore.init();
|
await memeBurnerStore.init();
|
||||||
|
|
||||||
//init
|
//init
|
||||||
roundsStore.currentRound = parseInt(
|
roundsStore.currentRound = parseInt(await memeBurnerStore.getCurrentRound());
|
||||||
await memeBurnerStore.getCurrentRound()
|
|
||||||
);
|
|
||||||
console.log("roundsStore.currentRound", roundsStore.currentRound);
|
console.log("roundsStore.currentRound", roundsStore.currentRound);
|
||||||
roundsStore.activeRound = roundsStore.currentRound;
|
roundsStore.activeRound = roundsStore.currentRound;
|
||||||
await roundsStore.fillRound(roundsStore.activeRound);
|
await roundsStore.fillRound(roundsStore.activeRound);
|
||||||
@@ -164,11 +163,11 @@ onMounted(async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<navbar @show-panel="((value) => showPanel = value)"/>
|
<navbar @show-panel="(value) => (showPanel = value)" />
|
||||||
<slideout-panel v-model="showPanel">
|
<slideout-panel v-model="showPanel">
|
||||||
<connect-wallet></connect-wallet>
|
<connect-wallet></connect-wallet>
|
||||||
</slideout-panel>
|
</slideout-panel>
|
||||||
<div class="main">
|
<div class="main" :class="{ 'no-scroll': showPanel, mobile: isMobile }">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
@@ -189,4 +188,8 @@ onMounted(async () => {
|
|||||||
padding: 24px
|
padding: 24px
|
||||||
font-size: 24px
|
font-size: 24px
|
||||||
text-align: center
|
text-align: center
|
||||||
|
.main
|
||||||
|
&.mobile
|
||||||
|
&.no-scroll
|
||||||
|
overflow: hidden
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user