Client - display today cell w/ different color

This commit is contained in:
Sam 2020-07-15 14:07:25 +02:00
parent e386f466ae
commit 3be8783ee3
2 changed files with 11 additions and 1 deletions

View File

@ -741,6 +741,10 @@ label {
background: #f5f5f5;
}
.calendar .body .today {
background: #eff1f3;
}
.calendar-activity,
.calendar-more {
display: none;

View File

@ -8,6 +8,7 @@ import {
format,
isSameDay,
isSameMonth,
isToday,
startOfMonth,
startOfWeek,
subMonths,
@ -110,7 +111,12 @@ class Calendar extends React.Component {
? [5, 6].includes(i)
: [0, 6].includes(i)
days.push(
<div className={`col cell ${isWeekEnd ? ' weekend' : ''}`} key={day}>
<div
className={`col cell ${isWeekEnd ? ' weekend' : ''}${
isToday(day) ? ' today' : ''
}`}
key={day}
>
<div className={`img${isDisabled}`}>
<span className="number">{formattedDate}</span>
<CalendarActivities