[style] Fixed darkmode and layout on very small devices

This commit is contained in:
Ferdinand Thiessen 2021-11-11 15:25:11 +01:00
parent 75b9e39f11
commit e0176c57e1
3 changed files with 16 additions and 13 deletions

View File

@ -12,7 +12,7 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
name: 'DummyWidget', name: 'EventsWidget',
setup() { setup() {
function randomNumber(start: number, end: number) { function randomNumber(start: number, end: number) {
return start + Math.floor(Math.random() * Math.floor(end)); return start + Math.floor(Math.random() * Math.floor(end));

View File

@ -19,9 +19,9 @@
<q-page padding> <q-page padding>
<q-card> <q-card>
<div style="max-width: 1800px; width: 100%"> <div style="max-width: 1800px; width: 100%">
<q-toolbar class="bg-primary text-white q-my-md shadow-2 items-center row justify-center"> <div class="bg-primary text-white q-my-sm shadow-2 row justify-center">
<div class="row justify-center items-center"> <div class="col-xs-12 col-sm-9 row justify-center items-center">
<q-btn flat dense label="Prev" @click="calendarPrev" /> <q-btn flat dense icon="mdi-chevron-left" title="previous" @click="calendarPrev" />
<q-separator vertical /> <q-separator vertical />
<q-btn flat dense <q-btn flat dense
>{{ asMonth(selectedDate) }} {{ asYear(selectedDate) }} >{{ asMonth(selectedDate) }} {{ asYear(selectedDate) }}
@ -45,22 +45,21 @@
</q-popup-proxy> </q-popup-proxy>
</q-btn> </q-btn>
<q-separator vertical /> <q-separator vertical />
<q-btn flat dense label="Next" @click="calendarNext" /> <q-btn flat dense icon="mdi-chevron-right" title="next" @click="calendarNext" />
</div> </div>
<!-- <q-space /> --> <div class="col-xs-12 col-sm-3 text-center">
<q-btn-toggle <q-btn-toggle
v-model="calendarView" v-model="calendarView"
class="row absolute-right"
flat flat
stretch stretch
toggle-color="" toggle-color="black"
:options="[ :options="[
{ label: 'Tag', value: 'day' }, { label: 'Tag', value: 'day' },
{ label: 'Woche', value: 'week' }, { label: 'Woche', value: 'week' },
]" ]"
/> />
</q-toolbar> </div>
</div>
<q-calendar-agenda <q-calendar-agenda
v-model="selectedDate" v-model="selectedDate"
:view="calendarRealView" :view="calendarRealView"
@ -242,7 +241,13 @@ export default defineComponent({
<style> <style>
@import '@quasar/quasar-ui-qcalendar/dist/index.css'; @import '@quasar/quasar-ui-qcalendar/dist/index.css';
/* Fill full height of card */
.q-calendar-agenda__pane { .q-calendar-agenda__pane {
height: 100%; height: 100%;
} }
/* Same as Qcard */
.q-calendar {
--calendar-background-dark: --q-dark;
}
</style> </style>

View File

@ -59,9 +59,7 @@ export default defineComponent({
} }
const tabs: Tab[] = [ const tabs: Tab[] = [
{ name: 'agendaView', label: 'Kalendar' }, { name: 'agendaView', label: 'Kalendar' }
// { name: 'eventtypes', label: 'Veranstaltungsarten' },
// { name: 'jobtypes', label: 'Dienstarten' }
]; ];
const drawer = ref<boolean>(false); const drawer = ref<boolean>(false);