1
0

Keep route controls on the California board

This commit is contained in:
2026-08-11 18:31:57 -07:00
parent 000036450d
commit 4e313c4a79
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1337,6 +1337,7 @@ const helpButton = document.querySelector<HTMLButtonElement>("#help");
const planToggle = document.querySelector<HTMLButtonElement>("#plan-toggle");
const credits = document.querySelector<HTMLElement>("#credits");
const driveControls = document.querySelector<HTMLElement>("#drive-controls");
const driveHint = document.querySelector<HTMLElement>("#drive-hint");
function showDetail(text: string | null) {
const card = document.querySelector<HTMLElement>("#detail");
@@ -1483,6 +1484,7 @@ function renderLegend() {
officePlan?.setActiveView(office?.current() ?? null);
renderOfficeBadge();
if (driveControls) driveControls.hidden = !routeDriveIsActive();
if (driveHint) driveHint.hidden = inside || cityId !== "california";
}
/**