From: Anton Khorev Date: Tue, 13 Feb 2024 23:04:47 +0000 (+0300) Subject: Adjust diary comment widths and borders X-Git-Tag: live~764^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9603bb404e8fbc4eda8fc8876af53252afd86a59 Adjust diary comment widths and borders --- 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" %>