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;
text-align: center;
}
.event > .date.only-one {
grid-template-rows: auto;
}
.event > .date > div > span {
display: block;
}

View file

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