From: Anton Khorev Date: Wed, 24 Apr 2024 23:35:57 +0000 (+0300) Subject: Use Bootstrap actionable items in changeset lists X-Git-Tag: live~719^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/dfa04e8837588326fde3b03a8104286f3a5396da?hp=02c60f78f6639c303e639865dbe279763e5060db Use Bootstrap actionable items in changeset lists --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d3399420b..d2a8f037d 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -584,8 +584,9 @@ tr.turn { #sidebar .changesets { li { - &.selected { background: $list-highlight; } - /* color is derived from changeset bbox fillColor in history.js */ + &.selected { + @extend :hover; + } a.stretched-link > span, a:not(.stretched-link), [title] { position: relative; diff --git a/app/views/changesets/_changeset.html.erb b/app/views/changesets/_changeset.html.erb index b219f4c32..6362330a9 100644 --- a/app/views/changesets/_changeset.html.erb +++ b/app/views/changesets/_changeset.html.erb @@ -10,7 +10,7 @@ } end %> -<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %> +<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item list-group-item-action" do %>

<%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>