diff default/blog/item.html @ 112:988a1c0e8419

blog/item: fixed "expanded" parameter
author Goffi <goffi@goffi.org>
date Fri, 26 Jan 2018 07:50:33 +0100
parents 609c66552ba0
children
line wrap: on
line diff
--- a/default/blog/item.html	Wed Jan 24 20:24:09 2018 +0100
+++ b/default/blog/item.html	Fri Jan 26 07:50:33 2018 +0100
@@ -14,7 +14,12 @@
     {% set other_lang = " other_lang" %}
 {% endif %}
 
-<article id="{{item.id}}" class="init box{{other_lang}}{{" clicked" if expanded}}">
+{% if expanded %}
+    {# FIXME: the style attribute is not nice, but due to the use of clicked_mh_fix. A cleaner way would be welcomed #}
+    <article id="{{item.id}}" class="init box{{other_lang}} clicked" style="max-height: none">
+{% else %}
+    <article id="{{item.id}}" class="init box{{other_lang}}" >
+{% endif %}
 
     {# following message is displayed if item lang is different from page locale #}
     {% if other_lang is defined %}