Polish dashboard layout and stabilize live map refreshes

Preserve map markers, zoom and open details during polling; consolidate technical notes and align interface spacing. Fix empty English translations inserting undefined text and add regression coverage.
This commit is contained in:
alberto committed 2026-10-18 21:14:35 +02:00
1 parent c8941dc199
commit 33f1294405
17 files changed
+277 -50

No files matched your search

+31
View File
@@ -3,3 +3,34 @@
.map-local{pointer-events:none}.map-shared{margin-top:18px;padding:14px;border:1px solid #426177;border-radius:9px;background:#172b3b}.map-shared>b{display:block;font-size:12px;color:#b8d4e8}.map-shared p{margin:10px 0}.map-shared button{margin:9px 6px 4px 0;font-size:12px;padding:7px 12px}.map-shared small{display:block;font-size:10px;line-height:1.6;color:#8ea7bd;margin-top:8px}
.legend-unknown{color:#d3c394}
.journal-layout{gap:16px;grid-template-columns:minmax(0,1fr) 330px}
.journal-table-scroll{max-height:clamp(280px,calc(100dvh - 500px),680px)}
.journal-table{font-size:12px}
.journal-table th,.journal-table td{padding:13px 12px}
.journal-table th,.journal-table td small,.journal-badge,.journal-result{font-size:11px}
.journal-table td b{font-size:14px}
.journal-detail{padding:20px;min-height:320px;max-height:clamp(336px,calc(100dvh - 442px),738px)}
.journal-detail .reader-empty{min-height:280px;gap:8px}
.journal-detail .reader-empty h2{font-size:17px}
.journal-detail .reader-empty p{max-width:240px;line-height:1.6}
.journal-facts span,.journal-facts b,.journal-timeline span{font-size:12px}
.journal-timeline time{font-size:11px}
.journal-layout .data-notes{padding:10px 12px}
.map-layout{gap:16px;grid-template-columns:minmax(0,1fr) 300px;height:clamp(380px,calc(100dvh - 270px),640px)}
.map-card{height:100%;min-height:0;background:#0b1624}
.map-card svg{height:100%;min-height:0}
.map-info{padding:20px;max-height:none;min-height:0;overflow:auto}
.map-info-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100%;padding:24px 0;gap:14px}
.map-info-empty h2{font-size:17px;margin:0}
.map-info-empty p{max-width:230px;margin:0;font-size:12px}
.map-info p,.map-info form label,.map-info form small,.map-last span,.map-last small,.map-recent small,.map-shared small{font-size:12px}
.map-info header h2{font-size:27px}
.map-legend{gap:12px;flex-wrap:wrap;max-width:calc(100% - 32px);font-size:11px;left:16px;bottom:23px;border:1px solid #344b60}
.map-attribution{font-size:10px;bottom:6px}
.map-toolbar #map-summary{font-size:12px}
.map-station small{font-size:11px;color:#9bacbf}
.map-station{min-width:160px}
@media(max-width:1400px){.journal-layout{grid-template-columns:1fr}.journal-detail:has(.reader-empty){display:none}.journal-detail{max-height:560px}.map-layout{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:950px){.map-layout{grid-template-columns:1fr;height:auto}.map-card{height:420px}.map-info{max-height:440px}.map-info:has(.map-info-empty){display:none}}
@media(max-width:600px){.map-card{height:360px}.map-legend{font-size:10px;gap:8px}.journal-table-scroll{min-height:260px}.journal-detail{padding:16px}}