Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullcalendar header buttons not responsive?

I configured Fullcalendar on my project, but I notice that on mobile, there is a problem with the layout of the buttons of the header, which is not at all aesthetic

FullCalendar on PC :

enter image description here

FullCalendar on mobile :

enter image description here

Is there anything to do to make it more aesthetic?

like image 406
eronn Avatar asked Sep 18 '25 15:09

eronn


1 Answers

This Fullcalender is not responsive so we have to make header forcefully responsive. Add below code in your ngOnInit() function.

document.querySelector('style').textContent += "@media screen and (max-width:767px) { .fc-toolbar.fc-header-toolbar {flex-direction:column;} .fc-toolbar-chunk { display: table-row; text-align:center; padding:5px 0; } }";
like image 185
Subham Debnath Avatar answered Sep 21 '25 07:09

Subham Debnath