From ad6c9dd55ff4885c1f58e90c1ef6450e560df887 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Fri, 11 Nov 2022 03:05:58 +0100 Subject: [PATCH] Fix styling and spacing for likes on comments --- app/assets/stylesheets/comments.scss | 20 ++++++++++++++++---- app/assets/stylesheets/single-post-view.scss | 15 ++++++++++++--- app/assets/stylesheets/stream_element.scss | 10 ++++++++++ 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/comments.scss b/app/assets/stylesheets/comments.scss index bcfa8ab8e..d82150f91 100644 --- a/app/assets/stylesheets/comments.scss +++ b/app/assets/stylesheets/comments.scss @@ -24,10 +24,9 @@ .comments > .comment, .comment.new-comment-form-wrapper { - margin: 0; border-top: 1px dotted $border-grey; - padding: 10px 0; + padding: 10px 0 0; .info { margin-top: 5px; @@ -54,8 +53,6 @@ } } - .comment.new-comment-form-wrapper { padding-bottom: 0; } - .submit-button { margin-top: 10px; input { @@ -81,6 +78,21 @@ } } +.likes-on-comment { + &.likes { + margin-top: 6px; + } + + .media { + margin: 0 0 2px; + } + + .expand-likes { + display: inline-block; + margin-bottom: 4px; + } +} + .new-comment { &:not(.open) .submit-button, &:not(.open) .md-header { diff --git a/app/assets/stylesheets/single-post-view.scss b/app/assets/stylesheets/single-post-view.scss index ceaabc4fa..d0ffde15c 100644 --- a/app/assets/stylesheets/single-post-view.scss +++ b/app/assets/stylesheets/single-post-view.scss @@ -116,9 +116,6 @@ .no-comments { text-align: center; } - a { - color: $link-color; - } .count { float: left; i { @@ -144,6 +141,7 @@ .comment.new-comment-form-wrapper { padding: 10px; } + .comments > .comment { padding-bottom: 0; } .count, .interaction-avatars { @@ -164,4 +162,15 @@ width: $line-height-computed; } } + .likes { + font-size: 12px; + line-height: 16px; + + .bd, + .entypo-heart { + display: inline-block; + } + + img { display: inline; } + } } diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss index 6f876ba15..24e1c5bcf 100644 --- a/app/assets/stylesheets/stream_element.scss +++ b/app/assets/stylesheets/stream_element.scss @@ -191,6 +191,16 @@ } } + .comments { + .likes { + line-height: 10px; + } + + .expand-likes { + line-height: 20px; + } + } + .status-message-location { color: $text-grey; font-size: $font-size-small;