Skip to content

Commit ca94021

Browse files
committed
add support for window activities in the calendar view plugin
1 parent b730cc2 commit ca94021

File tree

2 files changed

+251
-86
lines changed

2 files changed

+251
-86
lines changed

resources/js/packages/ui/src/FullCalendar/TimeEntryCalendar.vue

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -712,28 +712,41 @@ onUnmounted(() => {
712712
713713
/* Activity status plugin styles */
714714
.fullcalendar :deep(.activity-status-box) {
715+
position: absolute;
716+
width: 10px;
717+
left: 0px;
718+
z-index: 10;
719+
cursor: default;
720+
}
721+
722+
.fullcalendar :deep(.activity-status-box::before) {
723+
content: '';
724+
position: absolute;
725+
top: 0;
726+
bottom: 0;
727+
width: 5px;
715728
transition: opacity 0.2s ease;
716729
}
717730
718-
.fullcalendar :deep(.activity-status-box.idle) {
719-
background-color: rgba(156, 163, 175, 0.1) !important;
731+
.fullcalendar :deep(.activity-status-box.idle::before) {
732+
background-color: rgba(156, 163, 175, 0.1);
720733
}
721734
722-
.fullcalendar :deep(.activity-status-box.idle):hover {
723-
background-color: rgba(156, 163, 175, 0.5) !important;
735+
.fullcalendar :deep(.activity-status-box.idle):hover::before {
736+
background-color: rgba(156, 163, 175, 0.5);
724737
}
725738
726-
.fullcalendar :deep(.activity-status-box.active) {
727-
background-color: rgba(34, 197, 94, 0.3) !important;
739+
.fullcalendar :deep(.activity-status-box.active::before) {
740+
background-color: rgba(34, 197, 94, 0.3);
728741
}
729742
730-
.fullcalendar :deep(.activity-status-box.active):hover {
731-
background-color: rgba(34, 197, 94, 1) !important;
743+
.fullcalendar :deep(.activity-status-box.active):hover::before {
744+
background-color: rgba(34, 197, 94, 1);
732745
}
733746
734747
/* Add left margin to events only on days with activity status data */
735748
.fullcalendar :deep(.has-activity-status .fc-timegrid-event-harness) {
736-
margin-left: 15px !important;
749+
margin-left: 8px !important;
737750
}
738751
739752
.fullcalendar :deep(.fc-timegrid-event) {

0 commit comments

Comments
 (0)