Tablet-friendlier points: route markers get a 48px grab area, notes can be moved (Move in the popup: drag or tap the new spot), new and edited points pick an icon and a color with B/I buttons for their text, and the Tracks & Points open/close arrows get a real hit area
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-19 00:03:39 +01:00
1 parent 3e5fada66a
commit 07f3711760
3 files changed
+280 -77

No files matched your search

+114 -24
View File
@@ -975,9 +975,43 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
}
.gpx-tree summary {
display: flex;
align-items: center;
cursor: pointer;
font-weight: 600;
border-radius: 3px;
list-style: none;
}
.gpx-tree summary::-webkit-details-marker {
display: none;
}
/* The open/close arrow for folders and tracks with points: a real hit area
(the browser's own marker, or a 12px glyph, was a fingertip miss). */
.gpx-tree summary::before {
content: "▸";
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 28px;
color: #888;
font-size: 13px;
transition: transform 0.15s;
}
.gpx-tree details[open] > summary::before {
transform: rotate(90deg);
}
@media (pointer: coarse) {
.gpx-tree summary::before {
width: 36px;
height: 40px;
font-size: 16px;
}
}
.gpx-tree__folder-row {
@@ -985,7 +1019,8 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
align-items: center;
justify-content: space-between;
gap: 4px;
width: calc(100% - 18px);
flex: 1;
min-width: 0;
}
.gpx-tree__folder-row > :first-child {
@@ -997,34 +1032,13 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
outline: 1px dashed #4a90d9;
}
/* A track/route holding points: its row is the summary, a small
triangle (not the browser's marker, gone with display:flex) opens the
point list. */
/* A track/route holding points: its row is the summary, the shared
.gpx-tree summary::before arrow opens the point list. */
.gpx-tree__track > summary {
display: flex;
align-items: center;
font-weight: normal;
list-style: none;
margin-left: -12px;
}
.gpx-tree__track > summary::-webkit-details-marker {
display: none;
}
.gpx-tree__track > summary::before {
content: "▸";
width: 12px;
flex: none;
color: #888;
font-size: 10px;
transition: transform 0.15s;
}
.gpx-tree__track[open] > summary::before {
transform: rotate(90deg);
}
.gpx-tree__track > summary > .gpx-tree__file {
flex: 1;
min-width: 0;
@@ -1697,6 +1711,73 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
background: var(--accent-bg);
}
/* Point color swatches (PointStyleFields, notes.js); the first is "default". */
.notes-panel__colors {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 4px 0;
}
.notes-panel__color {
width: 24px;
height: 24px;
padding: 0;
border: 2px solid #fff;
border-radius: 50%;
background: var(--swatch, repeating-linear-gradient(45deg, #fff 0 3px, #ccc 3px 6px));
box-shadow: 0 0 0 1px #bbb;
cursor: pointer;
}
.notes-panel__color.active {
box-shadow: 0 0 0 2px var(--accent);
}
/* B / I above a note's text (formatToolbar, notes.js). */
.notes-panel__format {
display: flex;
gap: 4px;
margin: 4px 0 2px;
}
.notes-panel__format button {
min-width: 32px;
height: 28px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
font: inherit;
cursor: pointer;
}
.notes-panel__format button:hover {
background: #f0f0f0;
}
/* Moving a note: the marker takes the accent color, the hint + Save/Cancel
ride in a popup above it. */
.note-move-marker {
background: var(--accent);
}
.gpx-popup__move-bar p {
margin: 0 0 6px;
font-size: 13px;
}
@media (pointer: coarse) {
.notes-panel__color {
width: 32px;
height: 32px;
}
.notes-panel__format button {
min-width: 44px;
height: 36px;
}
}
/* The pending-note marker shown on the map while the save form is open —
updates live to whatever icon is picked (see notes.js's onIconChange). A
plain round badge (not a drop-pin shape) since MapLibre anchors a custom
@@ -2644,6 +2725,15 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
cursor: grab;
}
/* An invisible 48px grab area around the 26px dot: a finger missed the dot
itself and panned the map instead (the marker is already absolutely
positioned by MapLibre, so this needs no position of its own). */
.route-marker::after {
content: "";
position: absolute;
inset: -11px;
}
.route-panel__remove:disabled {
visibility: hidden;
}