Merge pull request 'better_display_on_small_screens' (#24) from better_display_on_small_screens into master
Reviewed-on: https://git.rz.ens.wtf/Klub-RZ/metis/pulls/24
This commit is contained in:
commit
c7605f42ba
1 changed files with 18 additions and 7 deletions
|
@ -32,6 +32,18 @@
|
||||||
|
|
||||||
const params = new URL(document.location).searchParams.getAll('c');
|
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 calendar;
|
||||||
|
|
||||||
let options = writable({
|
let options = writable({
|
||||||
|
@ -46,13 +58,7 @@
|
||||||
],
|
],
|
||||||
locale: frLocale,
|
locale: frLocale,
|
||||||
allDayContent: '',
|
allDayContent: '',
|
||||||
headerToolbar: {
|
headerToolbar: headers,
|
||||||
left: mobile ? false : 'prev,next today',
|
|
||||||
center: 'title',
|
|
||||||
right: mobile
|
|
||||||
? 'prev,today,next dayGridMonth,timeGridWeek,timeGridDay,listWeek'
|
|
||||||
: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
|
|
||||||
},
|
|
||||||
height: '100%',
|
height: '100%',
|
||||||
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
|
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
|
@ -142,6 +148,11 @@
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
:global(.fc-toolbar-chunk:not(:last-child)) {
|
||||||
|
margin-bottom: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 765px) {
|
@media (max-width: 765px) {
|
||||||
:global(.fc-header-toolbar) {
|
:global(.fc-header-toolbar) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Reference in a new issue