mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
fix: views render logic
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
<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"
|
||||||
class="absolute right-6 top-3 p-1 rounded-md bg-green-600 hover:bg-green-500 print:hidden"
|
class="absolute right-6 top-3 p-1 rounded-md bg-green-600 hover:bg-green-500 print:hidden"
|
||||||
@click="() => (globalStore.fullscreenMode = false)"
|
@click="() => (globalStore.fullscreenMode = false)"
|
||||||
>
|
>
|
||||||
<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]" />
|
||||||
|
|||||||
Reference in New Issue
Block a user