Stretch changeset links in history lists

This commit is contained in:
Anton Khorev 2022-09-01 22:45:09 +03:00
parent bf11e06e63
commit 5da7215873
3 changed files with 6 additions and 15 deletions

View file

@ -10,18 +10,6 @@ OSM.History = function (map) {
})
.on("mouseout", "[data-changeset]", function () {
unHighlightChangeset($(this).data("changeset").id);
})
.on("mousedown", "[data-changeset]", function () {
var moved = false;
$(this)
.one("click", function (e) {
if (!moved && !$(e.target).is("a")) {
clickChangeset($(this).data("changeset").id, e);
}
})
.one("mousemove", function () {
moved = true;
});
});
var group = L.featureGroup()

View file

@ -742,10 +742,13 @@ tr.turn:hover {
#sidebar .changesets {
li {
cursor: pointer;
&.selected { background: $list-highlight; }
/* color is derived from changeset bbox fillColor in history.js */
a:not(.stretched-link), [title] {
position: relative;
z-index: 1;
}
}
.comments {

View file

@ -12,7 +12,7 @@
<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %>
<p class="fst-italic">
<a class="changeset_id text-dark" href="<%= changeset_path(changeset) %>">
<a class="changeset_id text-dark stretched-link" href="<%= changeset_path(changeset) %>">
<%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
</a>
</p>