From 7f98906b0f93d9b0a3966196c9fdbec13a77214f Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 28 Jun 2023 13:41:14 +0100 Subject: [PATCH] Comments: Tweaked design to be more consistent and compact --- resources/sass/_components.scss | 9 ++++----- resources/views/comments/comment.blade.php | 14 +++++++------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/resources/sass/_components.scss b/resources/sass/_components.scss index e6c0fdcd1..c66a432bf 100644 --- a/resources/sass/_components.scss +++ b/resources/sass/_components.scss @@ -676,7 +676,7 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group { @include lightDark(background-color, #FFF, #222); .content { font-size: 0.666em; - padding: $-m $-s; + padding: $-xs $-s; p, ul, ol { font-size: $fs-m; margin: .5em 0; @@ -701,11 +701,8 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group { .comment-box .header { border-bottom: 1px solid #DDD; - padding: $-s; + padding: $-xs $-s; @include lightDark(border-color, #DDD, #000); - button { - font-size: .8rem; - } a { color: inherit; } @@ -734,6 +731,8 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group { .comment-reply { display: none; + margin: 0 !important; + margin-bottom: -$-xxs !important; } .comment-branch .comment-branch .comment-branch .comment-branch .comment-reply { diff --git a/resources/views/comments/comment.blade.php b/resources/views/comments/comment.blade.php index 8933e2e6a..1cb709160 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -10,10 +10,10 @@
@if ($comment->createdBy)
- {{ $comment->createdBy->name }} + {{ $comment->createdBy->name }}
@endif -
+
@if ($comment->createdBy) {{ $comment->createdBy->getShortName(16) }} @else @@ -31,14 +31,14 @@ @if(!$readOnly && (userCan('comment-create-all') || userCan('comment-update', $comment) || userCan('comment-delete', $comment)))
@if(userCan('comment-create-all')) - + @endif @if(userCan('comment-update', $comment)) - + @endif @if(userCan('comment-delete', $comment)) @endif
@@ -65,7 +65,7 @@