fix: increase timeslot widths in editor so swap buttons fit (#4119)

This commit is contained in:
Jennifer Richards 2022-06-22 16:11:15 -03:00 committed by GitHub
parent c09fd9dad2
commit 7da2795565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -515,8 +515,8 @@ def edit_meeting_schedule(request, num=None, owner=None, name=None):
capped_max_d = min(max_duration, datetime.timedelta(hours=4))
capped_timedelta = min(max(capped_min_d, timedelta), capped_max_d)
min_d_css_rems = 4
max_d_css_rems = 6
min_d_css_rems = 5
max_d_css_rems = 7
# interpolate
scale = (capped_timedelta - capped_min_d) / (capped_max_d - capped_min_d) if capped_min_d != capped_max_d else 1
return min_d_css_rems + (max_d_css_rems - min_d_css_rems) * scale