fix: views render logic

This commit is contained in:
2025-05-03 13:49:01 +02:00
parent 7aaf620d6a
commit b5edfb8d3e
@@ -1,7 +1,4 @@
<template> <template>
<!-- Timetable render based on current view mode -->
<CurrentTimetableView v-if="globalStore.currentTimetableData != null" />
<!-- Button closing fullscreen mode, relative to MainContainer --> <!-- Button closing fullscreen mode, relative to MainContainer -->
<button <button
v-if="globalStore.fullscreenMode" v-if="globalStore.fullscreenMode"
@@ -11,6 +8,9 @@
<Minimize2Icon :size="22" /> <Minimize2Icon :size="22" />
</button> </button>
<!-- Timetable render based on current view mode -->
<CurrentTimetableView v-if="globalStore.currentTimetableData != null" />
<!-- If there is no timetable chosen --> <!-- If there is no timetable chosen -->
<div class="overflow-auto text-center font-bold text-zinc-400 p-1 min-h-full" v-else> <div class="overflow-auto text-center font-bold text-zinc-400 p-1 min-h-full" v-else>
<component :is="viewModes[globalStore.viewMode]" /> <component :is="viewModes[globalStore.viewMode]" />