From 0df85a1e6157d868cffe2efc486296cbf52ab1cb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 Jul 2018 18:47:57 +0200 Subject: [PATCH] Cosmetic fixes --- static/nryg.less | 7 ++++--- templates/components/event.html | 4 +--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/nryg.less b/static/nryg.less index 9471d993..873b6c67 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -135,7 +135,7 @@ nav { .box { border-radius: 4px; background-color: rgba(red(@text-color), green(@text-color), blue(@text-color), 0.1); - padding: 4px; + padding: 8px; margin-left: 4px; margin-right: 4px; @@ -728,25 +728,26 @@ nav { .event { display: grid; - grid-template-columns: 25% 55% 20%; padding-top: 4px; padding-bottom: 4px; + grid-template-columns: 28% 50% 22%; .time { grid-column: 1; grid-row: 1; - font-weight: bold; } .name { grid-column: 2; grid-row: 1; font-weight: bold; + color: @accent-color; } .author { grid-column: 3; grid-row: 1; + text-align: right; } .description { diff --git a/templates/components/event.html b/templates/components/event.html index 66494252..1b81437a 100644 --- a/templates/components/event.html +++ b/templates/components/event.html @@ -15,8 +15,6 @@ di {{ event.author.username }}
- {% autoescape false %} - {{ escape(event.description).replace('\n', '
') }} - {% endautoescape %} + {{ (escape(event.description)).replace("\n", "
"|safe) }}
\ No newline at end of file