Fullcalendar How to remove padding from events in timegridview?
P粉996763314
P粉996763314 2023-09-08 19:12:15
0
1
541

I need to remove the padding from the events when the calendar is in a "timegridview". My users click on the white space created, allowing them to avoid the time period they should be blocked for.

I have set it up to show the event details when the event is clicked.

For example, if I have an event from 11am to noon that is blocked for "Lunch", the user will click on a blank space and the schedule dialog will pop up.

I've tried this CSS snippet and it handles the left and right spacing, but I can't control the top/bottom.

.fc-timegrid-event-harness-inset {
        left: -8% !important;
        right: -8% !important;
        
    }

P粉996763314
P粉996763314

reply all(1)
P粉368878176

Have you tried it

padding: 0 !important;

Or use calc to set the width and height. For example:

width: calc(100% + 8%);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!