Schedule details: use sprite #company icon for Борт (Angular parity)

Probed the live Angular page and the schedule-details Борт row uses
`<svg><use xlink:href="/assets/img/sprite.svg#company">` — a
stroked side-view jet silhouette — NOT the simpler top-down plane
glyph from toolkit/icons/plane (that one only appears in the row
indicator next to flight times). Port the seven #company paths
from sprite.svg verbatim into the leg-details panel so the icon
matches the legacy app exactly.
This commit is contained in:
2026-04-23 15:45:03 +03:00
parent 3304e76d4f
commit 6dcbb332be
@@ -86,20 +86,32 @@ export const ScheduleLegDetails: FC<ScheduleLegDetailsProps> = ({ flight }) => {
className="schedule-leg-details__icon schedule-leg-details__icon--plane"
aria-hidden="true"
>
{/* Path copied verbatim from Angular's
toolkit/icons/plane/plane-icon.component.html so the
schedule details panel shows the same stylised
top-view plane the legacy app does. */}
{/* Aircraft 'company crane' icon — copied verbatim from
Angular's sprite (`/assets/img/sprite.svg#company`).
This is what the legacy details panel uses next to
the 'Борт' caption, NOT the simpler plane glyph. */}
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 19 19"
width="19"
height="19"
viewBox="0 0 47.488 46.928"
width="34"
height="34"
>
<path
d="M6.334 16.625h1.583l3.958-6.334h4.355a1.188 1.188 0 0 0 0-2.375h-4.355L7.917 1.583H6.334l1.983 6.333H3.963L2.771 6.333H1.583l.792 2.771-.792 2.771h1.188l1.187-1.583h4.359Z"
fill="currentColor"
/>
<g
transform="translate(-1.586 -0.987)"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M32.5,12l-21-6.5c-1,0-1.139-.01-1.366.226L7.5,8a.922.922,0,0,0-.245.763.9.9,0,0,0,.44.662L25.5,19" />
<path d="M12,37,3,46" />
<path d="M14,41.5l-5,5" />
<path d="M46.173,8.537l0,0L22.721,32.233a1,1,0,0,0-.246.994l1.918,6.308-3.655,3.652-4.709-8.5a1,1,0,0,0-.391-.391l-8.6-4.75L10.7,25.889,17.007,27.8a1,1,0,0,0,1-.254L41.453,3.857l0,0h0A7,7,0,0,1,44.32,2.173a2.981,2.981,0,0,1,3.053.564,2.883,2.883,0,0,1,.465,3.051,7.357,7.357,0,0,1-1.663,2.747Zm-25.5,34.711h0Zm.1.014h0ZM6.966,29.5h0l-.032.057Zm3.694-3.622h0Z" />
<path d="M14.5,6.5l-4,4" />
<path d="M38,17l6.5,21c0,1,.01,1.139-.226,1.366L42,42a.922.922,0,0,1-.763.245.9.9,0,0,1-.662-.44L31,24" />
<path d="M43.5,35l-4,4" />
</g>
</svg>
</span>
<span className="schedule-leg-details__label">