Driving menu Trip: the stops as big rows (look, ✓ passed, ↑ ↓, ✕), a stop at the crosshair, the start at the car, search of saved points and offline places; each leg's km and time (legs_s) and the total, in the route panel too; passed stops kept (not routed, dimmed, editable) — a reroute marks them instead of dropping them; /status.html: every status endpoint full width (the debug panel links it); the trip-as-plan-and-log model and planned-vs-driven colors in docs/TODO
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-01 02:21:14 +01:00
1 parent 0eb9d05cdc
commit 809e88ab1a
14 files changed
+517 -101

No files matched your search

+95
View File
@@ -3588,3 +3588,98 @@ html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
.feather-home { fill: var(--ui-fg); }
:root[data-palette] .drive-bar button,
:root[data-palette] .drive-bar__recenter { box-shadow: 0 0 0 1px var(--ui-line), 0 2px 8px rgb(0 0 0 / 0.35); }
/* The driving mode's Trip menu (driving.js): big rows, big actions, on the
right; the crosshair in the middle of what's left of the map. */
.drive-trip {
position: absolute;
top: 12px;
right: 12px;
bottom: 12px;
z-index: 5;
width: min(540px, 48%);
display: flex;
flex-direction: column;
border-radius: 14px;
background: var(--ui-bg);
color: var(--ui-fg);
box-shadow: 0 0 0 1px var(--ui-line), 0 4px 16px rgb(0 0 0 / 0.35);
overflow: hidden;
}
.drive-trip[hidden] { display: none; }
.drive-trip__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 0 20px;
background: var(--band);
color: var(--band-fg);
font-size: 22px;
font-weight: 700;
}
.drive-trip__close { width: 76px; height: 64px; border: none; background: none; color: inherit; font-size: 26px; cursor: pointer; }
.drive-trip__stops { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.drive-trip__stops li { display: flex; align-items: stretch; min-height: 76px; border-bottom: 1px solid var(--ui-line); }
.drive-trip__stops button {
border: none;
background: none;
color: inherit;
font: inherit;
cursor: pointer;
}
.drive-trip__stops .drive-bar__stop-name { flex: 1; padding: 0 16px; text-align: left; font-size: 18px; font-weight: 600; }
.drive-trip__stops .drive-bar__stop-up,
.drive-trip__stops .drive-bar__stop-down,
.drive-trip__stops .drive-bar__stop-drop { width: 68px; font-size: 26px; border-left: 1px solid var(--ui-line); }
.drive-trip__stops button:disabled { opacity: 0.25; }
.drive-trip__stops button:active:not(:disabled) { background: var(--accent-bg); }
.drive-trip__empty { padding: 20px 16px; color: var(--ui-muted); font-size: 16px; }
.drive-trip__actions { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--ui-line); }
.drive-trip__actions button {
min-height: 72px;
border: none;
border-radius: 12px;
background: var(--accent);
color: #fff;
font-size: 19px;
font-weight: 700;
cursor: pointer;
}
.drive-trip__actions [data-action="start"] { background: var(--band); color: var(--band-fg); }
.drive-bar .drive-bar__trip { font-size: 16px; }
.drive-bar button.active { background: var(--accent); }
.drive-crosshair {
position: absolute;
z-index: 4;
width: 44px;
height: 44px;
margin: -22px 0 0 -22px;
pointer-events: none;
background:
linear-gradient(var(--inst-active), var(--inst-active)) center / 3px 100% no-repeat,
linear-gradient(var(--inst-active), var(--inst-active)) center / 100% 3px no-repeat;
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.drive-crosshair[hidden] { display: none; }
.drive-trip__search { padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
.drive-trip__search input {
width: 100%;
box-sizing: border-box;
height: 60px;
padding: 0 16px;
border: 1px solid var(--ui-line);
border-radius: 10px;
background: var(--ui-bg-2);
color: var(--ui-fg);
font-size: 20px;
}
.drive-trip__stops .drive-bar__stop-name small { display: block; color: var(--ui-muted); font-size: 14px; font-weight: 400; }
.drive-trip__stops .drive-bar__stop-add { width: 76px; font-size: 30px; font-weight: 700; color: var(--accent); border-left: 1px solid var(--ui-line); }
.drive-trip__total { margin-left: 10px; font-size: 16px; font-weight: 500; opacity: 0.8; }
.route-panel__leg { display: block; color: var(--ui-muted); font-size: 11px; }
/* Passed stops (route.js): dimmed, still editable — the buttons keep full strength */
.drive-trip__passed .drive-bar__stop-name,
.route-panel__passed .route-panel__point { opacity: 0.45; }
.drive-trip__stops .drive-bar__stop-done { width: 68px; font-size: 24px; border-left: 1px solid var(--ui-line); color: var(--ui-muted); }
.drive-trip__stops .drive-bar__stop-done.active { color: var(--inst-ok); font-weight: 700; }
.route-marker--passed { opacity: 0.45; }