From f1cf1be64a11e739300c1d54247451efbb9c7018 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 2 Sep 2022 16:03:52 +0300 Subject: [PATCH] Put span inside stretched link to improve text selection --- app/assets/stylesheets/common.scss | 5 +++++ app/views/changesets/_changeset.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 75ed514ee..bc2533c17 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -745,6 +745,11 @@ tr.turn:hover { &.selected { background: $list-highlight; } /* color is derived from changeset bbox fillColor in history.js */ + a.stretched-link > span { + position: relative; + z-index: 2; + } + a:not(.stretched-link), [title] { position: relative; z-index: 1; diff --git a/app/views/changesets/_changeset.html.erb b/app/views/changesets/_changeset.html.erb index f3aaf38ea..fa1761954 100644 --- a/app/views/changesets/_changeset.html.erb +++ b/app/views/changesets/_changeset.html.erb @@ -13,7 +13,7 @@ <%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %>

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

-- 2.39.5