From 9603bb404e8fbc4eda8fc8876af53252afd86a59 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 14 Feb 2024 02:04:47 +0300 Subject: [PATCH] Adjust diary comment widths and borders --- app/assets/stylesheets/common.scss | 11 ++++------- app/views/diary_entries/_diary_comment.html.erb | 4 ++-- app/views/diary_entries/show.html.erb | 6 ++---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index f0746117d..b5bd5adec 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -827,14 +827,11 @@ tr.turn:hover { height: 400px; display: none; } - .comments { - max-width: 740px; + .diary-comment .col-auto { + width: 62px; } - .diary-comment { - border-top: 1px dashed $grey; - &:first-child { - border-top: 1px solid $grey; - } + .diary-comment .col { + max-width: 690px; } } diff --git a/app/views/diary_entries/_diary_comment.html.erb b/app/views/diary_entries/_diary_comment.html.erb index 238f4d43c..04e011574 100644 --- a/app/views/diary_entries/_diary_comment.html.erb +++ b/app/views/diary_entries/_diary_comment.html.erb @@ -1,5 +1,5 @@ -
"> -
+
"> +
<%= user_thumbnail diary_comment.user %>
diff --git a/app/views/diary_entries/show.html.erb b/app/views/diary_entries/show.html.erb index 317c54635..3312aa8f2 100644 --- a/app/views/diary_entries/show.html.erb +++ b/app/views/diary_entries/show.html.erb @@ -12,8 +12,8 @@ <%= render @entry %> -
-
+
+

<%= t(".discussion") %>

<% if current_user %> @@ -30,8 +30,6 @@ <%= render :partial => "diary_comment", :collection => @comments %>
-
-
<% if current_user %>

<%= t ".leave_a_comment" %>

-- 2.39.5