From a48036d496f0af90ff437c897b77418ca8453e9c Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Thu, 8 Jan 2026 20:51:47 +0700 Subject: feat: switch standard OSM to CyclOSM for maps on site feat: reduce border size for sidebar buttons from 0.3rem to 0.25rem --- static/input.css | 2 +- views/pages/blog-page.html | 6 +++--- views/pages/global-map.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/static/input.css b/static/input.css index 55e29b0..66d832c 100644 --- a/static/input.css +++ b/static/input.css @@ -482,7 +482,7 @@ form.crossable.htmx-request input { } .themed-button.themed-button-sidebar { - --border-size: 0.3rem; + --border-size: 0.25rem; background-image: var(--squares-and-triangles-background); background-repeat: var(--squares-and-triangles-background-repeat); background-size: calc(var(--squares-and-triangles-background-width-coef) * 0.9rem) calc(var(--squares-and-triangles-background-height-coef) * 0.9rem); diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index f488d64..c81406f 100644 --- a/views/pages/blog-page.html +++ b/views/pages/blog-page.html @@ -21,9 +21,9 @@ function initLocationMap(id, x, y, relativeErrorMeters = 0) { map = L.map(id).setView([x, y], 8); - L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 18, - attribution: '© OpenStreetMap' + L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', { + maxZoom: 20, + attribution: 'CyclOSM | Map data: © OpenStreetMap contributors' }).addTo(map); if (relativeErrorMeters != 0) { diff --git a/views/pages/global-map.html b/views/pages/global-map.html index 52ea841..7d788d6 100644 --- a/views/pages/global-map.html +++ b/views/pages/global-map.html @@ -230,9 +230,9 @@ function initLocationMap() { map = L.map('map-container').setView([{{ .MapLocationLat }}, {{ .MapLocationLong }}], 4); - L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 18, - attribution: '© OpenStreetMap', + L.tileLayer('https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', { + maxZoom: 20, + attribution: 'CyclOSM | Map data: © OpenStreetMap contributors', zoomControl: false }).addTo(map); -- cgit v1.3.1+13