Skip to content
Snippets Groups Projects
Commit 4c90f277 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: use full viewport height for calendar

refs #154
parent 3d4e9b28
No related branches found
No related tags found
No related merge requests found
<template> <template>
<b-container> <b-container class="tw-flex tw-flex-col">
<PageHeader :title="$t('navigation.calendar')"> <PageHeader :title="$t('navigation.calendar')">
<b-button-group v-if="selectedShow"> <b-button-group v-if="selectedShow">
<b-button :variant="view === 'day' ? 'primary' : 'secondary'" @click="view = 'day'"> <b-button :variant="view === 'day' ? 'primary' : 'secondary'" @click="view = 'day'">
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
</template> </template>
<auth-wall v-else-if="selectedShow"> <auth-wall v-else-if="selectedShow" class="tw-flex-1">
<b-alert :variant="conflictCount > 0 ? 'danger' : 'success'" :show="conflictMode"> <b-alert :variant="conflictCount > 0 ? 'danger' : 'success'" :show="conflictMode">
<div v-if="conflictMode"> <div v-if="conflictMode">
<h4>{{ $t('conflictResolution.title') }}</h4> <h4>{{ $t('conflictResolution.title') }}</h4>
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
<server-errors :errors="serverErrors" /> <server-errors :errors="serverErrors" />
<div> <div class="tw-h-full">
<div :class="{ 'tw-hidden': view !== 'week' }"> <div class="tw-h-full" :class="{ 'tw-hidden': view !== 'week' }">
<FullCalendar ref="calendar" :options="calendarConfig" /> <FullCalendar ref="calendar" :options="calendarConfig" />
</div> </div>
...@@ -320,7 +320,8 @@ export default { ...@@ -320,7 +320,8 @@ export default {
initialView: 'timeGridWeek', initialView: 'timeGridWeek',
locale: this.$activeLocale(), locale: this.$activeLocale(),
initialDate: this.currentStart, initialDate: this.currentStart,
height: 600, height: '100%',
stickyHeaderDates: true,
firstDay: 1, firstDay: 1,
navLinks: true, navLinks: true,
events: this.calendarSlots, events: this.calendarSlots,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
</div> </div>
<hr /> <hr class="tw-w-full" />
</template> </template>
<script setup> <script setup>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment