fix(cockpit): keep the phone Display/Radio row clear of the DEST cue

Above the compass block the centred row covered the DEST route-direction
label and chevron at 320-390 px, and its fixed +182px offset pushed it off
the top of short landscape screens. Place it between the roll scale and the
reticle from a viewport-aware visor inset instead, keep it on screen below
the vision controls on short landscape phones, and centre Cyber's expanded
panel on the Reset/Exit axis.

The unit test now asserts the pointer-events contract and Cyber centring;
the browser QA adds the DEST cue to the clearance check, hit-tests each
launcher glyph and covers 740x360 and 667x240.
This commit is contained in:
German Khokhlov committed 2026-11-19 18:54:59 +04:00
1 parent 1165286c7b
commit 4b8a407ba2
6 files changed
+87 -43

No files matched your search

+8 -12
View File
@@ -48,9 +48,8 @@
--cockpit-side-panel-width: min(340px, 28vw);
/* HUD bottom offset + tallest scaled telemetry block + 20px clear border. */
--cockpit-bottom-rail-safe: calc(clamp(84px, 11vh, 118px) + 100px);
/* The compass block's bottom edge; the phone Display/Radio row sits above
the telemetry it carries. */
--cockpit-compass-bottom: clamp(44px, 7vh, 72px);
/* The phone Display/Radio row shares the visor inset with the roll scale. */
--cockpit-visor-top: clamp(62px, 9vh, 90px);
position: fixed;
inset: 0;
z-index: 145;
@@ -68,7 +67,7 @@
}
.cockpit-visor-shell {
position: absolute;
inset: clamp(62px, 9vh, 90px) clamp(18px, 3vw, 48px) clamp(38px, 5vh, 56px);
inset: var(--cockpit-visor-top) clamp(18px, 3vw, 48px) clamp(38px, 5vh, 56px);
transform-style: preserve-3d;
perspective: 880px;
}
@@ -648,7 +647,7 @@ html:not([lang='en']) .cockpit-roll-token.is-separator {
.cockpit-compass {
position: absolute;
left: 50%;
bottom: var(--cockpit-compass-bottom);
bottom: clamp(44px, 7vh, 72px);
width: min(760px, 72vw);
transform: translateX(-50%) rotateX(7deg) translateZ(18px);
transform-style: preserve-3d;
@@ -2079,17 +2078,14 @@ body.cockpit-mode #intel-hud .hud-right-edge {
body.cockpit-mode #right-context-rail {
display: none !important;
}
/* A centred row above the compass block: its ground speed and altitude
telemetry tops out ~171px above the block's bottom edge on phones, so
the row clears it by ~10px and stays on the same axis as RESET/EXIT.
The row spans the width to centre its launchers; only they take input. */
/* Place the row just below the roll arc (visor inset + 2px + 96px).
On shorter screens, leave 8px between the 42px row and the reticle
(46% - 18px), keeping the row below the vision controls at 72px. */
body.cockpit-mode .cockpit-utility-controls {
top: auto;
top: clamp(72px, calc(46% - 68px), calc(var(--cockpit-visor-top) + 108px));
right: 12px;
bottom: calc(var(--cockpit-compass-bottom) + 182px);
left: 12px;
justify-content: center;
max-width: none;
pointer-events: none;
}
body.cockpit-mode .cockpit-utility-controls {