mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 17:48:51 +02:00
91 responsive changes
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user