Show live Horizon terrain and radar views in the web panel

This commit is contained in:
2026-12-02 18:52:41 +03:00
parent 7612d15963
commit 20fdb23b39
15 changed files with 818 additions and 120 deletions
+52 -14
View File
@@ -2,11 +2,11 @@
color-scheme: dark;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px;
background: #0b121a;
background: #0a1018;
color: #e4edf1;
--surface: #111e29;
--surface-raised: #182936;
--border: #2b4250;
--surface: #111b26;
--surface-raised: #172534;
--border: #293a4c;
--muted: #9ab0bb;
--accent: #70d7c9;
--warning: #edbd6c;
@@ -51,9 +51,10 @@ h3 { font-size: .9rem; margin-bottom: .55rem; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .75rem; scrollbar-width: thin; }
.tabs button, .tabs a { flex: 0 0 auto; }
.tabs [aria-selected="true"], .tabs [aria-current="page"], .tabs .active { background: #1b4c4a; border-color: #70d7c9; color: #e6fffa; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: .85rem; align-items: start; }
.map-column, .side-panel { min-width: 0; display: grid; gap: .75rem; }
.map-wrap { position: relative; overflow: hidden; min-height: 260px; border: 1px solid #35515d; border-radius: 12px; background: #101c24; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); gap: 1rem; align-items: start; }
.map-column, .side-panel { min-width: 0; display: grid; }
.map-column { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: clip; }
.map-wrap { position: relative; overflow: hidden; min-height: 260px; border-block: 1px solid var(--border); background: #101c24; }
.map-wrap canvas { display: block; width: 100%; height: auto; touch-action: none; }
.map-tools, .toolbar, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.map-tools > *, .toolbar > * { flex: 0 1 auto; }
@@ -70,7 +71,7 @@ small, .muted { color: var(--muted); }
[hidden] { display: none !important; }
dialog { width: min(90vw, 540px); max-height: min(85vh, 800px); overflow: auto; padding: 1.2rem; border: 1px solid #4d6974; border-radius: 14px; background: #152630; color: inherit; box-shadow: 0 20px 70px #0009; }
dialog::backdrop { background: #02080dc9; }
@media (max-width: 800px) {
@media (max-width: 800px), (max-width: 1100px) and (orientation: portrait) {
.workspace { grid-template-columns: minmax(0, 1fr); }
.side-panel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.map-wrap { min-height: 200px; }
@@ -81,11 +82,11 @@ dialog::backdrop { background: #02080dc9; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
.map-wrap canvas { height: clamp(280px, 59dvh, 690px); }
.map-tools { justify-content: space-between; }
.map-actions { display: flex; gap: .35rem; }
.map-wrap canvas { height: clamp(300px, 65dvh, 780px); }
.map-tools { padding: .65rem; gap: .5rem .85rem; }
.map-actions { display: flex; gap: .35rem; margin-left: auto; }
.map-actions button { min-width: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding: .65rem .85rem; }
.legend { display: flex; flex-wrap: wrap; gap: .1rem .85rem; }
.legend label { display: flex; align-items: center; min-height: 34px; cursor: pointer; }
.side-panel > .card { display: grid; gap: .7rem; }
.pairing { max-width: 410px; margin: clamp(36px, 15vh, 160px) auto 0; }
@@ -101,8 +102,8 @@ dialog::backdrop { background: #02080dc9; }
.object-card button { margin-top: .5rem; }
#history-more, #preview, #confirm-launch { color: #b6f3eb; border-color: #447672; }
#launch-status:empty, #pair-error:empty, #map-status:empty { display: none; }
@media (min-width: 801px) and (min-height: 680px) { .map-column { position: sticky; top: .75rem; } }
@media (max-width: 800px) { .map-wrap canvas { height: clamp(240px, 46dvh, 580px); } }
@media (min-width: 801px) and (min-height: 680px) and (orientation: landscape), (min-width: 1101px) and (min-height: 680px) { .map-column { position: sticky; top: .75rem; } }
@media (max-width: 800px), (max-width: 1100px) and (orientation: portrait) { .map-wrap canvas { height: clamp(270px, 49dvh, 580px); } }
.timeline-marker-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .1rem; }
.timeline-marker-slot { display: flex; justify-content: center; min-width: 0; }
@@ -116,3 +117,40 @@ dialog::backdrop { background: #02080dc9; }
.timeline-marker-heading { margin: 0; font-size: .8rem; }
.timeline-marker-choice { text-align: left; font-size: .82rem; overflow-wrap: anywhere; }
.timeline-marker-choice[aria-current="true"] { border-color: var(--accent); }
.brand { display: flex; align-items: baseline; gap: .65rem; }
.brand h1 { letter-spacing: -.035em; }
.connection-readout { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
#connection { display: inline-flex; align-items: center; gap: .45rem; border-radius: 99px; padding: .3rem .6rem; background: var(--surface); border: 1px solid var(--border); font-weight: 650; }
#connection::before { content: ""; height: .45rem; width: .45rem; border-radius: 50%; background: currentColor; }
#refresh-rate { color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.tabs { gap: .2rem; }
.tabs button { background: transparent; border-color: transparent; }
.tabs [aria-current="page"] { color: #b6f2e7; background: #163332; border-color: #305b56; }
.map-mode { display: inline-flex; gap: 2px; padding: 2px; background: #0b141f; border: 1px solid var(--border); border-radius: 10px; }
.map-mode button { background: transparent; border-color: transparent; min-height: 38px; padding: .4rem .8rem; color: var(--muted); }
.map-mode button[aria-pressed="true"] { background: #234443; border-color: #3d6864; color: #d3fff3; }
.inline-field { display: flex; align-items: center; gap: .4rem; }
.inline-field select { min-width: 0; max-width: 13rem; min-height: 42px; font-size: .85rem; }
.map-footer { padding: .35rem .75rem .6rem; }
.map-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; min-height: 1rem; color: var(--muted); font-size: .78rem; }
#map-status { font-variant-numeric: tabular-nums; }
.legend [data-layer="units"] { accent-color: #6adcd2; }
.legend [data-layer="objects"] { accent-color: #a9baf6; }
.legend [data-layer="contacts"] { accent-color: #f0bf6a; }
.legend [data-layer="interceptors"] { accent-color: #b2e68f; }
.panel-title { margin: 0; font-size: 1.05rem; }
#object-list { max-height: min(52dvh, 510px); gap: .32rem; }
#object-list button { display: grid; gap: .2rem; border-left: 3px solid var(--marker, var(--border)); }
#object-list small { font-weight: 450; font-size: .76rem; }
#object-list [data-kind="unit"] { --marker: #6adcd2; }
#object-list [data-kind="object"] { --marker: #a9baf6; }
#object-list [data-kind="contact"] { --marker: #f0bf6a; }
#object-list [data-kind="interceptor"] { --marker: #b2e68f; }
@media (max-width: 540px) {
.map-tools { gap: .5rem; }
.inline-field { font-size: .8rem; }
.inline-field select { max-width: 45vw; }
#fit { padding-inline: .5rem; }
}