Skip to content

Commit

Permalink
bar: events: fix nested p and bottom margin
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Jun 16, 2024
1 parent 10ae93e commit f5c1fa5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main/templates/main/bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ <h1>{{ bar.name }}</h1>
<div class="container px-0 col-12 col-lg-10">
<div class="col-12 border-bottom my-3"></div>
</div>
<style>
.event-description p:last-child {
margin-bottom: 0;
}
</style>
<div class="container px-0 col-12 col-lg-8">
{% for event in events %}
<div class="row mb-5 mt-4">
Expand All @@ -117,7 +122,9 @@ <h1>{{ bar.name }}</h1>
<h6 class="text-secondary mb-0 mt-3 mt-sm-0"> {{ event.start_date }} </h6>
<h2> {{ event.name }}</h2>
{% if event.description %}
<p class="mb-0">{{ event.description|linebreaks }}</p>
<div class="event-description">
{{ event.description|linebreaks }}
</div>
{% endif %}
<div class="position-relative mt-auto left-0 bottom-0">
<a type="button" class="btn btn-dark" href="{% url 'download_event_ics' event_id=event.id %}">
Expand Down

0 comments on commit f5c1fa5

Please sign in to comment.