stops: make [hidden] actually hide the stop list

.mu-stop-grid sets display:grid, which overrides the hidden attribute, so the
list stayed visible on the near-me tab even though the code set hidden.
Same class of bug as .mu-search-mode, which now has an explicit [hidden] rule
in both repos.
This commit is contained in:
Bkk1234 committed 2026-10-24 00:42:02 +07:00
1 parent 750b4a2ea8
commit aeb51c2ebd
3 files changed
+7 -6

No files matched your search

+5 -5
View File
@@ -12,8 +12,8 @@
<link href="./_shared.css" rel="stylesheet">
<link href="./vendor/leaflet/leaflet.css" rel="stylesheet">
<link href="./map.css" rel="stylesheet">
<meta name="app-version" content="2026.09.27.98">
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.98">
<meta name="app-version" content="2026.09.27.99">
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.99">
<style>
.mu-card.empty { width: 100%; padding: 16px; text-align: center; color: #6f7b95; background: #fff7fb; border: 1px dashed #f4c7df; }
a.mu-card { text-decoration: none; color: inherit; display: block; }
@@ -339,7 +339,7 @@
<meta name="theme-color" content="#7a4cc0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.98">
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.99">
<script src="./imageurl.js" defer></script>
<script src="./pwa.js" defer></script>
<script src="./i18n.js" defer></script>
@@ -444,7 +444,7 @@
<header class="mu-topbar">
<div class="mu-container mu-topbar-inner">
<a class="mu-brand" href="#/" aria-label="Atroute — หน้าแรก" data-i18n-attr="aria-label:aria.brandHome">
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.98" alt="Atroute logo" width="44" height="44" decoding="async">
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.99" alt="Atroute logo" width="44" height="44" decoding="async">
<span>
<span class="mu-brand-title">Atroute</span>
<span class="mu-brand-subtitle" data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
@@ -487,7 +487,7 @@
<div class="mu-footer-grid">
<div class="mu-footer-brand">
<div class="mu-footer-brand-row">
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.98" alt="Atroute">
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.99" alt="Atroute">
<div>
<strong>Atroute</strong>
<span data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
+1
View File
@@ -248,6 +248,7 @@
.mu-toolbar-count b { color: #7a4cc0; font-variant-numeric: tabular-nums; }
/* ===== การ์ดป้าย ===== */
.mu-stop-grid[hidden] { display: none; }
.mu-stop-grid {
display:grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
+1 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.27.98"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.27.99"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [