title on top on mobiles
This commit is contained in:
parent
ef12ad4be5
commit
17aa03295c
1 changed files with 18 additions and 5 deletions
|
@ -32,6 +32,18 @@
|
|||
|
||||
const params = new URL(document.location).searchParams.getAll('c');
|
||||
|
||||
const headers = mobile
|
||||
? {
|
||||
left: 'title',
|
||||
center: 'prev,today,next',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
|
||||
}
|
||||
: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
|
||||
};
|
||||
|
||||
let calendar;
|
||||
|
||||
let options = writable({
|
||||
|
@ -46,11 +58,7 @@
|
|||
],
|
||||
locale: frLocale,
|
||||
allDayContent: '',
|
||||
headerToolbar: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
|
||||
},
|
||||
headerToolbar: headers,
|
||||
height: '100%',
|
||||
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
|
||||
nowIndicator: true,
|
||||
|
@ -140,6 +148,11 @@
|
|||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
:global(.fc-toolbar-chunk:not(:last-child)) {
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
|
||||
@media (max-width: 765px) {
|
||||
:global(.fc-header-toolbar) {
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Reference in a new issue