From b0a9b39c8d6c2ec32ed0748f8a7130b813fb123e Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 13 Oct 2021 17:36:48 +0100 Subject: [PATCH] Use flexbox instead of floating to position the comment icon This ensures both components get appropriate padding. Fixes #3305 --- app/assets/stylesheets/common.scss | 1 - app/views/changesets/_changeset.html.erb | 18 ++++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index e0eec7bda..f8cd32438 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -791,7 +791,6 @@ tr.turn:hover { } .comments { - float: right; color: $darkgrey; } diff --git a/app/views/changesets/_changeset.html.erb b/app/views/changesets/_changeset.html.erb index 267bdb555..714cd14b5 100644 --- a/app/views/changesets/_changeset.html.erb +++ b/app/views/changesets/_changeset.html.erb @@ -16,13 +16,15 @@ <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>

-
- <%= changeset.comments.length %> - -
-
- <%= changeset_details(changeset) %> - · - #<%= changeset.id %> +
+
+ <%= changeset_details(changeset) %> + · + #<%= changeset.id %> +
+
+ <%= changeset.comments.length %> + +
<% end %> -- 2.39.5