fixed position of montzar

This commit is contained in:
2026-05-13 14:59:46 +03:30
parent dd660a2ec5
commit 4769f66438
3 changed files with 134 additions and 15 deletions
+13 -8
View File
@@ -75,19 +75,17 @@
</div>
</div>
</Transition>
<div class=" !h-[calc(100vh-72px)] ">
<div class="main-with-bottom-chrome">
<router-view v-slot="{ Component, route }">
<!-- Use any custom transition and to `fade` -->
<transition :name="route.meta.transition || 'fade'">
<component :is="Component" class="!h-[calc(100vh-72px)]"/>
<component :is="Component" class="main-with-bottom-chrome-inner"/>
</transition>
</router-view>
</div>
<!-- <canvas ref="canvas" id="canvas1" width="400" height="80" class="w-full"></canvas>-->
<div class="bottom-appbar w-auto mx-auto">
<div class="tabs"
:class="userStore.getValueByKey('display_montzar') === 'true' ? 'bottom-1rem' : 'bottom-0' "
>
<div class="tabs bottom-0">
<div :class="setNavColor('home')" class="tab" @click="setRoute('home')">
<Icon icon="vuesax-linear:home"/>
<div class="text-xs mt-1 font-bold">صفحه اصلی</div>
@@ -153,7 +151,6 @@ import BasicButton from '@/components/BasicPacks/BasicButton.vue'
import type {Transaction} from '@/models/transaction'
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
import {useConfigStore} from "@/store/configStore";
import {useUserStore} from "@/store/userStore";
import {getConfigApp} from "@/utils/config";
/*onMounted(async () => {
@@ -167,7 +164,6 @@ import {getConfigApp} from "@/utils/config";
ctx.lineTo(400,20)
ctx.stroke();
})*/
const userStore = useUserStore()
const currentRoute = computed(() => router.currentRoute.value.name)
const config = useConfigStore()
const popVisible = ref(false)
@@ -196,7 +192,8 @@ function setRoute(val: string) {
position: fixed;
display: flex;
justify-content: space-evenly;
bottom: 0;
/* دقیقاً بالای نوار اعتبار App.vue (متغیر --app-credit-footer-offset) */
bottom: var(--app-credit-footer-offset, 28px);
right: 0;
left: 0;
@media screen and (min-width: 426px) {
@@ -413,4 +410,12 @@ function setRoute(val: string) {
transform: translateX(20px);
opacity: 0;
}
.main-with-bottom-chrome {
height: calc(100vh - 72px - var(--app-credit-footer-offset, 28px));
}
.main-with-bottom-chrome-inner {
height: calc(100vh - 72px - var(--app-credit-footer-offset, 28px));
}
</style>