Remove the on-screen numpad from the bus stop code search
The five code cells are now the only way to enter a stop code. The numpad was redundant on touch devices (the cells use inputMode=numeric, so the system keyboard already switches to digits) and it crowded the 375px layout. - StopsView.tsx: drop the .mu-numpad markup. - stops.search.ts: drop initNumpad(), its call and the pad show/hide toggle. - stops.css: drop all .mu-numpad rules. tsc clean, npm run build passes.
This commit is contained in:
1 parent
092f551b7d
commit
4c444b3d8d
4 files changed
+4
-80
No files matched your search
@@ -92,7 +92,6 @@
|
||||
.mu-search-mode { display: block; }
|
||||
/* กัน .display:block ทับ attribute [hidden] — โหมดที่ไม่ได้ใช้ต้องซ่อนจริง */
|
||||
.mu-search-mode[hidden],
|
||||
.mu-numpad[hidden] { display: none; }
|
||||
|
||||
.mu-search-field {
|
||||
display: flex;
|
||||
@@ -181,24 +180,6 @@
|
||||
}
|
||||
.mu-search-hint { margin: 8px 0 0; font-size: .82rem; color: #6f7b95; }
|
||||
|
||||
/* numpad — โชว์เฉพาะจอเล็ก */
|
||||
.mu-numpad { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; max-width: 320px; }
|
||||
.mu-numpad button {
|
||||
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
padding: 14px 0;
|
||||
border: 1px solid #e0d6f5;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
color: #1f2a44;
|
||||
cursor: pointer;
|
||||
font-variant-numeric: tabular-nums;
|
||||
transition: background .12s ease, border-color .12s ease;
|
||||
}
|
||||
.mu-numpad button:active { background: #f3ecff; border-color: #b07ce0; }
|
||||
.mu-numpad button[data-key="back"] { grid-column: span 2; font-size: 1rem; }
|
||||
|
||||
/* suggest */
|
||||
.mu-suggest {
|
||||
border: 1px solid #e0d6f5;
|
||||
@@ -353,7 +334,6 @@
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.mu-kpi-grid { grid-template-columns: 1fr; }
|
||||
.mu-numpad { display: grid; }
|
||||
.mu-search-tabs { width: 100%; }
|
||||
.mu-search-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: .84rem; }
|
||||
.mu-stop-action { flex-direction: column; align-items: flex-start; }
|
||||
|
||||
Reference in new issue
Block a user