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 {