From 7601146d111a455fa87bcbf59eca06bad81f034e Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 16 Apr 2025 15:03:45 +0300 Subject: [PATCH] Change highlighted bbox border width to 4px on history pages That makes the border an even number, with width/2 an integer. This produces a sharper edge when rendering on 1x pixel density devices. --- app/assets/javascripts/index/history-changesets-layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/history-changesets-layer.js b/app/assets/javascripts/index/history-changesets-layer.js index eafa2f715..4d011bb0d 100644 --- a/app/assets/javascripts/index/history-changesets-layer.js +++ b/app/assets/javascripts/index/history-changesets-layer.js @@ -16,7 +16,7 @@ OSM.HistoryChangesetsLayer = L.FeatureGroup.extend({ } return { - weight: isHighlighted ? 3 : 2, + weight: isHighlighted ? 4 : 2, color: "var(--changeset-border-color)", fillColor: "var(--changeset-fill-color)", fillOpacity: isHighlighted ? 0.3 : 0, -- 2.39.5