From 97cc312da32e78b754ab8bb12fa070e2df88974d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 25 Nov 2020 18:08:16 -0500 Subject: [PATCH] https://github.com/NodeBB/NodeBB/issues/8778 --- less/topic.less | 16 +++++++++++---- templates/partials/topic/post.tpl | 34 +++++++++++++++---------------- templates/partials/topic/sort.tpl | 2 +- templates/topic.tpl | 2 +- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/less/topic.less b/less/topic.less index 5669612..b0dd728 100644 --- a/less/topic.less +++ b/less/topic.less @@ -182,12 +182,11 @@ } .threaded-replies { - margin-left: 61px; - text-decoration: none; margin-left: 60px; + margin-top: 10px; + text-decoration: none; font-size: 11px; - img, .user-icon { .user-icon-style(16px, 10px, 50%); vertical-align: 1px; @@ -419,10 +418,13 @@ .posts { list-style-type: none; padding: 0; - + [component="post"][data-index="0"] { + border-bottom: 5px solid @post-border-color; + } [component="post"] { position: relative; border-bottom: 1px solid @post-border-color; + padding-bottom: @post-padding; margin-bottom: @post-padding; @@ -599,6 +601,12 @@ } [component="post"] { + &.topic-owner-post .post-header .avatar { + -webkit-box-shadow: 0px 0px 5px 2px @brand-primary; + -moz-box-shadow: 0px 0px 5px 2px @brand-primary; + box-shadow: 0px 0px 5px 2px @brand-primary; + } + .avatar.avatar-sm2x { font-size: 2.875rem; } diff --git a/templates/partials/topic/post.tpl b/templates/partials/topic/post.tpl index 09d5a13..4b429fc 100644 --- a/templates/partials/topic/post.tpl +++ b/templates/partials/topic/post.tpl @@ -58,6 +58,23 @@
{posts.user.signature}
+ {{{ if !hideReplies }}} + + + {{{each posts.replies.users}}} + {buildAvatar(posts.replies.users, "xs", true, "")} + {{{end}}} + + + {posts.replies.text} + + + + + + + {{{ end }}} + [[topic:reply]] @@ -82,21 +99,4 @@ - - - - - {{{each posts.replies.users}}} - {buildAvatar(posts.replies.users, "xs", true, "")} - {{{end}}} - - - {posts.replies.text} - - - - - - - \ No newline at end of file diff --git a/templates/partials/topic/sort.tpl b/templates/partials/topic/sort.tpl index 083a465..2e18c69 100644 --- a/templates/partials/topic/sort.tpl +++ b/templates/partials/topic/sort.tpl @@ -1,4 +1,4 @@ -
+