Skip to content

Commit

Permalink
fix(nd): adjust to 320 ref
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz committed Dec 21, 2022
1 parent 2d7d386 commit e5a3565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/instruments/src/ND/elements/ToWaypointIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const ToWaypointIndicator: FC<ToWaypointIndicatorProps> = memo(({ side, t
{bearing && bearing !== -1 && Number.isFinite(bearing) && (
<>
<text x={54} y={0} fontSize={25} className="Green" textAnchor="end">{(Math.round(trueRef ? trueBearing : bearing)).toString().padStart(3, '0')}</text>
<text x={73} y={trueRef ? 0 : 2} fontSize={25} className="Cyan" textAnchor="end">{trueRef ? 'T' : '°'}</text>
<text x={73} y={trueRef ? -3 : 2} fontSize={trueRef ? 21 : 25} className="Cyan" textAnchor="end">{trueRef ? 'T' : '°'}</text>
</>
)}

Expand Down
2 changes: 1 addition & 1 deletion src/instruments/src/ND/elements/TopMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TopMessages: React.FC<TopMessagesProps> = ({ side, ppos, trueTrack,
<Layer x={384} y={28} visibility={apprMsg === null ? 'hidden' : 'visible'}>
<text x={0} y={0} fontSize={25} className="Green" textAnchor="middle">{apprMsg ?? ''}</text>
</Layer>
<Layer x={384} y={56} visibility={trueRef ? 'visible' : 'hidden'}>
<Layer x={384} y={apprMsg === null ? 36 : 56} visibility={trueRef ? 'visible' : 'hidden'}>
<TrueFlag xOffset={apprMsg === null && gridTrack !== null ? -40 : 0} box={apprMsg === null} />
<Layer x={0} y={0} visibility={apprMsg === null && gridTrack !== null ? 'inherit' : 'hidden'}>
<GridTrack gridTrack={gridTrack ?? 0} />
Expand Down

0 comments on commit e5a3565

Please sign in to comment.