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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Reference in a new issue