Fixed single day size issue

This commit is contained in:
Edgar P. Burkhart 2022-01-28 15:12:08 +01:00
parent 3576cf454f
commit dd4a62ec4b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 9 additions and 0 deletions

View file

@ -72,6 +72,9 @@ body > #events {
gap: 1rem; gap: 1rem;
text-align: center; text-align: center;
} }
.event > .date.only-one {
grid-template-rows: auto;
}
.event > .date > div > span { .event > .date > div > span {
display: block; display: block;
} }

View file

@ -14,7 +14,11 @@
{% for event in events %} {% for event in events %}
<div class="event"> <div class="event">
<div class="summary">{{ event.summary }}</div> <div class="summary">{{ event.summary }}</div>
{% if event.is_one_day() and event.is_full_day() %}
<div class="date only-one">
{% else %}
<div class="date"> <div class="date">
{% endif %}
<div class="start-date"> <div class="start-date">
<span class="weekday"> <span class="weekday">
{{ event.dtstart.strftime('%A').capitalize() }} {{ event.dtstart.strftime('%A').capitalize() }}
@ -31,6 +35,7 @@
</span> </span>
{% endif %} {% endif %}
</div> </div>
{% if not (event.is_one_day() and event.is_full_day()) %}
<div class="end-date"> <div class="end-date">
{% if not event.is_one_day() %} {% if not event.is_one_day() %}
<span class="weekday"> <span class="weekday">
@ -51,6 +56,7 @@
</span> </span>
{% endif %} {% endif %}
</div> </div>
{% endif %}
</div> </div>
<div class="info"> <div class="info">
<div class="description"> <div class="description">