From 7112d62fa927d523b81b912397b5f166d5aa106c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Wed, 26 Oct 2016 16:22:06 +0200 Subject: [PATCH] Truncate the event category in the event card and move the button to the bottom right --- app/static/src/sass/modules/boxes/_article-box.scss | 4 ++-- app/templates/agenda/includes/event_card.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/src/sass/modules/boxes/_article-box.scss b/app/static/src/sass/modules/boxes/_article-box.scss index 0e2edf8a..67aab6e7 100644 --- a/app/static/src/sass/modules/boxes/_article-box.scss +++ b/app/static/src/sass/modules/boxes/_article-box.scss @@ -95,10 +95,10 @@ $module: ".article-box"; &__btn { position: absolute; - top: 0; + bottom: 0; right: 0; - @include margin-top(.5); + @include margin-bottom(.5); @include margin-right(.5); } diff --git a/app/templates/agenda/includes/event_card.html b/app/templates/agenda/includes/event_card.html index f3ca82ac..0d13c695 100644 --- a/app/templates/agenda/includes/event_card.html +++ b/app/templates/agenda/includes/event_card.html @@ -44,7 +44,7 @@ {% endif %} {% if event.category %}
- {{ event.category|truncatechars:20 }} + {{ event.category|truncatechars:15 }}
{% endif %} -- 2.39.5