Fixed single day size issue
This commit is contained in:
parent
3576cf454f
commit
dd4a62ec4b
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Reference in a new issue