Adjust diary comment widths and borders
This commit is contained in:
parent
f02100b963
commit
9603bb404e
3 changed files with 8 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="row diary-comment py-3<%= " text-muted bg-danger bg-opacity-10" unless diary_comment.visible? %>">
|
||||
<div class="col-auto">
|
||||
<div class="row diary-comment border-bottom py-3<%= " text-muted bg-danger bg-opacity-10" unless diary_comment.visible? %>">
|
||||
<div class="col-auto pe-0 text-center">
|
||||
<%= user_thumbnail diary_comment.user %>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
<%= render @entry %>
|
||||
|
||||
<div id="comments" class="comments">
|
||||
<div class="row">
|
||||
<div id="comments" class="comments mb-3">
|
||||
<div class="row border-bottom border-grey">
|
||||
<h2 class="col"><%= t(".discussion") %></h2>
|
||||
|
||||
<% if current_user %>
|
||||
|
@ -30,8 +30,6 @@
|
|||
<%= render :partial => "diary_comment", :collection => @comments %>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div>
|
||||
<% if current_user %>
|
||||
<h3 id="newcomment"><%= t ".leave_a_comment" %></h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue