91 responsive changes

This commit is contained in:
survellow
2023-12-06 10:22:43 +01:00
parent 1d656b2653
commit 4377faa40e
11 changed files with 219 additions and 113 deletions

View File

@ -1,10 +1,10 @@
<script lang="ts" setup>
import { Ref, computed, ref } from "vue";
import { Ref, computed, inject, ref } from "vue";
import moduleStore from "../store/moduleStore";
import { useI18n } from "vue-i18n";
const dialogVisible: Ref<boolean> = ref(false);
const mobilePage = ref(true);
const mobilePage = inject("mobilePage") as Ref<boolean>;
const { t } = useI18n({ useScope: "global" });
const store = moduleStore();
@ -26,13 +26,6 @@ const columns = computed(() => [
{ field: "Module", header: t("calendarPreview.module") },
]);
const updateMobile = () => {
mobilePage.value = window.innerWidth <= 992;
};
updateMobile();
window.addEventListener("resize", updateMobile);
</script>
<template>