From 733effa94f6d581976a02ef23c3f529ed928b81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 5 Oct 2020 13:05:28 -0400 Subject: [PATCH] feat: move topic labels https://github.com/NodeBB/NodeBB/issues/8717 --- less/topic.less | 9 ++++++++- templates/topic.tpl | 12 +++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/less/topic.less b/less/topic.less index e30f8a7..e057d6e 100644 --- a/less/topic.less +++ b/less/topic.less @@ -36,6 +36,13 @@ text-transform: initial; } } + + [component="topic/labels"] { + vertical-align: -3px; + font-size: 16px; + color: @text-muted; + } + [component="topic/browsing-users"] { margin-bottom: -15px; } @@ -236,7 +243,7 @@ .stats { font-size: 12px; - margin: 0px 5px 0px 5px; + margin: 0px 2px 0px 2px; display: inline-block; } diff --git a/templates/topic.tpl b/templates/topic.tpl index e84053f..d85804f 100644 --- a/templates/topic.tpl +++ b/templates/topic.tpl @@ -1,4 +1,3 @@ -
{{{each widgets.header}}} {{widgets.header.html}} @@ -8,14 +7,17 @@

- - - - {{{each icons}}}@value{{{end}}} {title}

+
+ + + + {{{each icons}}}@value{{{end}}} +
+
{{{ if category.icon }}}