feat: enhance timesheet summary with today highlighting and improved CSS styles
All checks were successful
Publish Container / publish (push) Successful in 5m43s
All checks were successful
Publish Container / publish (push) Successful in 5m43s
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
c0180aab13
commit
0d5b48b891
3 changed files with 36 additions and 3 deletions
|
|
@ -294,12 +294,24 @@ else if (viewMode == SummaryViewMode.Timesheet && timesheet is not null)
|
|||
|
||||
private static string GetDayColumnClass(global::WorkTracker.Domain.MonthlyTimesheetDayModel day)
|
||||
{
|
||||
if (day.IsWeekend || day.IsHoliday)
|
||||
var classes = new List<string>();
|
||||
|
||||
if (day.Date == DateOnly.FromDateTime(DateTime.Today))
|
||||
{
|
||||
return "timesheet-summary-day-danger";
|
||||
classes.Add("timesheet-summary-day-today");
|
||||
}
|
||||
|
||||
return day.IsClosure ? "timesheet-summary-day-closure" : string.Empty;
|
||||
if (day.IsWeekend || day.IsHoliday)
|
||||
{
|
||||
classes.Add("timesheet-summary-day-danger");
|
||||
}
|
||||
|
||||
if (day.IsClosure)
|
||||
{
|
||||
classes.Add("timesheet-summary-day-closure");
|
||||
}
|
||||
|
||||
return string.Join(" ", classes);
|
||||
}
|
||||
|
||||
private static string GetDayPopupClass(int index, int totalDays)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue