refactor: restore acrylic map UI and collapse mobile discovery tools

This commit is contained in:
zzy
2026-11-04 17:07:18 +08:00
parent e9d09db42f
commit 0f47a8b572
7 changed files with 160 additions and 109 deletions
+3 -2
View File
@@ -429,9 +429,10 @@
// Update notes are available from Settings; first visits stay focused on finding a bike.
}
async function previewLogin() {
const button = document.querySelector(".preview-login") || document.getElementById("auth-btn");
async function previewLogin(button) {
button = button || document.querySelector("[data-preview-demo]") || document.getElementById("auth-btn");
await doLogin("demo@preview.local", "preview123", document.getElementById("gate-tip"), button);
if (currentUser?.email === "demo@preview.local" && typeof SettingsPages !== "undefined") SettingsPages.close();
}
async function createPreviewSession() {
return AppAPI.run("preview-session", null, async () => {