Side panels: finger-sized rows and controls on desktop too (one layout, as OsmAnd); track and folder actions (edit, download, delete) behind one ⋯ menu
This commit is contained in:
1 parent
cc833d5793
commit
3f4b30d737
2 files changed
+44
-59
No files matched your search
+26
-31
@@ -1069,12 +1069,10 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.gpx-tree summary::before {
|
||||
width: 36px;
|
||||
height: 40px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.gpx-tree summary::before {
|
||||
width: 36px;
|
||||
height: 40px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.gpx-tree__folder-row {
|
||||
@@ -1829,16 +1827,14 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.notes-panel__color {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
.notes-panel__color {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.notes-panel__format button {
|
||||
min-width: 44px;
|
||||
height: 36px;
|
||||
}
|
||||
.notes-panel__format button {
|
||||
min-width: 44px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
/* The pending-note marker shown on the map while the save form is open —
|
||||
@@ -3178,22 +3174,21 @@ html.night .maplibregl-marker {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Touch screens (tablet in the car, phone): every row and control in the
|
||||
side panels (Overlays, Tracks & Points, base map, route, …) and the
|
||||
sidebar menus gets a finger-sized target, ~44 px as Apple/Material
|
||||
recommend. Desktop (fine pointer) keeps the compact lists. */
|
||||
@media (pointer: coarse) {
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(label, summary, button, select, .overlays-panel__row, .gpx-tree__point, .gpx-tree__file) {
|
||||
min-height: 44px;
|
||||
}
|
||||
/* Finger-sized (~44 px, Apple/Material) rows and controls in the side
|
||||
panels (Overlays, Tracks & Points, base map, route, …) and the sidebar
|
||||
menus — on desktop too, as OsmAnd does: one layout for the tablet in the
|
||||
car and the mouse, actions behind a ⋯ menu rather than a row of small
|
||||
buttons. */
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(label, summary, button, select, .overlays-panel__row, .gpx-tree__point, .gpx-tree__file) {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(button, select) {
|
||||
min-width: 44px;
|
||||
}
|
||||
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(button, select) {
|
||||
min-width: 44px;
|
||||
}
|
||||
|
||||
:is(.basemap-panel, .gpx-panel) input:is([type="checkbox"], [type="radio"]) {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
:is(.basemap-panel, .gpx-panel) input:is([type="checkbox"], [type="radio"]) {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
Reference in new issue
Block a user