Amélioration de la mise en page

This commit is contained in:
Jean-Marie Favreau 2024-10-30 23:15:21 +01:00
parent e34edc2e7c
commit d0aae68dd5
3 changed files with 8 additions and 2 deletions

View File

@ -1267,6 +1267,12 @@ article {
max-width: 42em;
}
}
.no-image {
grid-template-columns: 30% auto;
.description>div {
max-width: none;
}
}
}
}

View File

@ -4,7 +4,7 @@
{% load event_extra %}
{% load tag_extra %}
<article id="event-{{ event.pk}}" class="single-event">
<article id="event-{{ event.pk}}" class="single-event {% if not event.image and not event.local_image %}no-image{% endif %}">
<header class="head">
{% if day != 0 %}
{% if event|can_show_start_time:day %}

View File

@ -21,7 +21,7 @@
{% if tags %}
{% for tag in tags %}
<article class="tag-description">
<article class="tag-description no-image">
<header><a href="{% url 'view_tag' tag.name %}" role="button" class="small-cat">{{ tag.name }}</a></header>
<div>
{{ tag.description|safe }}