fixup! manager: allow separate arrival/departure check for partial bookings (#80047)
gitea/chrono/pipeline/head This commit looks good Details

This commit is contained in:
Valentin Deniaud 2023-11-22 15:35:10 +01:00
parent 9046ce7379
commit 28a0f3fa7d
1 changed files with 1 additions and 2 deletions

View File

@ -1671,11 +1671,10 @@ class AgendaDayView(EventChecksMixin, AgendaDateView, DayArchiveView):
if not check.start_time:
check.css_class += ' end-only'
check.css_left = booking.css_left
check.css_width = booking.css_width
check.css_width = get_time_ratio(check.end_time, booking.start_time)
elif not check.end_time:
check.css_class += ' start-only'
check.css_left = get_time_ratio(check.start_time, start_time)
check.css_width = 4
else:
check.css_left = get_time_ratio(check.start_time, start_time)
check.css_width = get_time_ratio(check.end_time, check.start_time)