Skip to content

Build your personal knowledge base with Trilium Notes

feat(geomap): widen the hit box on the device's dot for touch

Elian Doran5a03c65832a2
diff --git a/apps/client/src/widgets/collections/geomap/MapToolbar.css b/apps/client/src/widgets/collections/geomap/MapToolbar.css
index 4454471157..1d4bee7969 100644
--- a/apps/client/src/widgets/collections/geomap/MapToolbar.css
+++ b/apps/client/src/widgets/collections/geomap/MapToolbar.css
@@ -28,3 +28,16 @@
pointer-events: none;
}
+.geo-map-container .maplibregl-user-location-dot {
+ --location-dot-target: 27px;
+ box-sizing: content-box;
+ border: calc((var(--location-dot-target) - 15px) / 2) solid transparent;
+ background-clip: padding-box;
+}
+
+@media (pointer: coarse) {
+ .geo-map-container .maplibregl-user-location-dot {
+ --location-dot-target: 44px;
+ }
+}
+