fix: make the shedule editor fit better on laptop lenses and smaller external monitors. (#4107)

This commit is contained in:
Robert Sparks 2022-06-21 11:43:35 -05:00 committed by GitHub
parent caf2227813
commit b3c39bebd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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 = 8
max_d_css_rems = 10
min_d_css_rems = 4
max_d_css_rems = 6
# 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

View file

@ -2,7 +2,7 @@
<!-- [html-validate-disable-block no-inline-style -- FIXME: should style this better] -->
<div id="session{{ session.pk }}"
class="session {% if not session.group.parent.scheduling_color %}untoggleable-by-parent{% endif %} {% if session.parent_acronym %}parent-{{ session.parent_acronym }}{% endif %} purpose-{{ session.purpose.slug }} {% if session.readonly %}readonly{% endif %} {% if not session.on_agenda %}off-agenda{% endif %}"
style="width:{{ session.layout_width }}em;"
style="width:{{ session.layout_width }}rem;"
data-duration="{{ session.requested_duration.total_seconds }}"
{% if session.attendees != None %} data-attendees="{{ session.attendees }}"{% endif %}
data-type="{{ session.type.slug }}">