Use flexbox instead of floating to position the comment icon
This ensures both components get appropriate padding. Fixes #3305
This commit is contained in:
parent
3617974630
commit
b0a9b39c8d
2 changed files with 10 additions and 9 deletions
|
@ -791,7 +791,6 @@ tr.turn:hover {
|
|||
}
|
||||
|
||||
.comments {
|
||||
float: right;
|
||||
color: $darkgrey;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,13 +16,15 @@
|
|||
<%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
|
||||
</a>
|
||||
</p>
|
||||
<div class="comments comments-<%= changeset.comments.length %>">
|
||||
<%= changeset.comments.length %>
|
||||
<span class="icon note grey"></span>
|
||||
</div>
|
||||
<div class="details">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<%= changeset_details(changeset) %>
|
||||
·
|
||||
#<%= changeset.id %>
|
||||
</div>
|
||||
<div class="col-auto comments comments-<%= changeset.comments.length %>">
|
||||
<%= changeset.comments.length %>
|
||||
<span class="icon note grey"></span>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue