Files
TREK/client/src/components/Map/flightAircraft.css
T
Maurice e525e0b838 feat(flight-live): route mini map and a calmer live card; fix the CI gates
The live flight card shows a small real map behind the pass: the great
circle between the airports, solid where flown and dotted ahead, the
aircraft on the line turned along the route. The route is framed in the
free middle, the map fades out under the airports and times laid over it,
and its place names are hidden. Data and map credits sit on the map as its
hover text instead of a footer line.

The card head now follows the booking dialog: a tinted band with pills for
the state, what comes next and the delay; the numbers of the moment use the
dialog's fields on the desktop and the sheet's stat boxes on the phone; both
times sit on equal tiles in one line. Without live data the card, the strips
and the plan line show nothing, and the pulsing dots are gone.

Also fixes the failed dev run: unit symbols and the leg position are listed
as NOT_PLURAL, the aircraft label uses logical sides, the flight store is in
the test reset registry, the sync loop stops once no flight lies ahead (no
endless timers under fake timers), and timeCell and widgetFlight drop below
the max-params and complexity limits. Guards the GL bridge's resize frame
against a layer removed before it runs, and keeps the booking code pill as
tall as its neighbours.
2026-11-13 16:39:46 +01:00

85 lines
1.9 KiB
CSS

/*
* A live aircraft on the trip map (flightAircraft.ts). Both renderers position
* the outer element themselves, so the halo animation runs on a child and
* never fights the position. The colour comes in as --trek-aircraft, the
* map's transport colour, so the aircraft matches the flight lines it rides. The marker sits on the map's own colours, not on
* the theme's surfaces, so it stays legible on light and dark basemaps alike.
*/
@keyframes trek-aircraft-halo {
from {
opacity: 0.55;
transform: scale(0.7);
}
to {
opacity: 0;
transform: scale(1.9);
}
}
.trek-aircraft {
/* The marker is the disc alone, so the map's centre anchor sits on the aircraft;
the label hangs beside it out of the flow, on the right in either direction. */
position: relative;
width: 30px;
height: 30px;
direction: ltr;
pointer-events: auto;
cursor: pointer;
}
.trek-aircraft__halo {
position: absolute;
inset-inline-start: 0;
top: 0;
width: 30px;
height: 30px;
border-radius: 999px;
background: var(--trek-aircraft);
animation: trek-aircraft-halo 2.4s ease-out infinite;
}
.trek-aircraft__disc {
position: relative;
display: grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 999px;
background: #fff;
color: var(--trek-aircraft);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.trek-aircraft__label {
position: absolute;
inset-inline-start: 36px;
top: 50%;
transform: translateY(-50%);
padding: 3px 8px;
border-radius: 999px;
background: rgba(17, 24, 39, 0.82);
color: #fff;
font-family: var(--font-system);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.3px;
white-space: nowrap;
}
.trek-aircraft.is-stale .trek-aircraft__halo {
animation: none;
opacity: 0;
}
.trek-aircraft.is-stale .trek-aircraft__disc {
opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) {
.trek-aircraft__halo {
animation: none;
opacity: 0;
}
}