From: Andy Allan Date: Wed, 13 Oct 2021 16:36:48 +0000 (+0100) Subject: Use flexbox instead of floating to position the comment icon X-Git-Tag: live~1972^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b0a9b39c8d6c2ec32ed0748f8a7130b813fb123e?ds=sidebyside;hp=--cc Use flexbox instead of floating to position the comment icon This ensures both components get appropriate padding. Fixes #3305 --- b0a9b39c8d6c2ec32ed0748f8a7130b813fb123e 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 %>