diff --git a/app/static/css/table.css b/app/static/css/table.css index 6683524..691920f 100644 --- a/app/static/css/table.css +++ b/app/static/css/table.css @@ -118,6 +118,9 @@ table.thread td { table.thread td.message { padding-top: 8px; } +table.thread.topcomment td.message { + padding-top: 0; +} table.thread td.message > *:nth-child(2) { margin-top: 0; } @@ -126,10 +129,15 @@ table.thread td.message img { } table.thread div.info { - float: right; text-align: right; position: relative; } +table.thread.topcomment div.info { + padding-bottom: 4px; +} +table.thread:not(.topcomment) div.info { + float: right; +} table.thread div.info > * { display: inline-block; vertical-align: top; diff --git a/app/static/css/themes/default_theme.css b/app/static/css/themes/default_theme.css index 5c74f31..1c04ac1 100644 --- a/app/static/css/themes/default_theme.css +++ b/app/static/css/themes/default_theme.css @@ -29,7 +29,7 @@ table { --border: #d8d8d8; } -table tr:nth-child(even) { +table tr:nth-child(odd) { --background: rgba(0, 0, 0, .1); } table th { diff --git a/app/templates/widgets/thread.html b/app/templates/widgets/thread.html index e27e8d9..47ec9f0 100644 --- a/app/templates/widgets/thread.html +++ b/app/templates/widgets/thread.html @@ -3,9 +3,12 @@ {% macro thread(comments, top_comment) %} +{% if top_comment == None %} + +{% endif %} {% for c in comments %} - {% if c != top_comment %} + + {% elif loop.index0 != 0 %} +
Ce message est le top comment
+ {% endif %} {% endfor %}
{{ widget_user.profile(c.author) }}
@@ -46,8 +49,11 @@ {{ c.author.signature|md }} {% endif %}