Skip to content

Commit

Permalink
Include link to excess appointments in the month check (as in YearPla…
Browse files Browse the repository at this point in the history
…nnerView) (#1888)
  • Loading branch information
benditorok authored Jan 4, 2025
1 parent cb67895 commit c7e4470
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Radzen.Blazor/Rendering/YearTimelineView.razor
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,15 @@
}
}

}

@if (excessCount > 0)
{
var slotIndex = start.Subtract(date).Days;
var slotWidth = (SLOT_WIDTH / CALENDAR_WIDTH) * 100;
var left = ((slotIndex + 1) * slotWidth) + (100.0 / 85.0);
var top = ((MaxAppointmentsInSlot + 1) * 1.5) + 1.7;
var listDate = start;
<a class="rz-event-list-btn" style="top: @(top.ToInvariantString())em; left: @(left.ToInvariantString())%" @onclick=@(args => OnListClick(listDate, appointments))>@String.Format(MoreText, excessCount)</a>
@if (excessCount > 0)
{
var slotIndex = start.Subtract(date).Days;
var slotWidth = (SLOT_WIDTH / CALENDAR_WIDTH) * 100;
var left = ((slotIndex + 1) * slotWidth) + (100.0 / 85.0);
var top = ((MaxAppointmentsInSlot + 1) * 1.5) + 1.7;
var listDate = start;
<a class="rz-event-list-btn" style="top: @(top.ToInvariantString())em; left: @(left.ToInvariantString())%" @onclick=@(args => OnListClick(listDate, appointments))>@String.Format(MoreText, excessCount)</a>
}
}
}
</div>
Expand Down

0 comments on commit c7e4470

Please sign in to comment.