Skip to content

Commit

Permalink
Improve route view
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed May 30, 2022
1 parent 9da6138 commit 2de0691
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "icarus",
"version": "0.13.7",
"version": "0.14.0",
"description": "ICARUS Terminal for Elite Dangerous",
"scripts": {
"build": "npm run build:client && npm run build:app && npm run build:service && npm run build:package",
Expand Down
5 changes: 4 additions & 1 deletion src/client/pages/nav/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function NavListPage () {
<i style={{ position: 'absolute', top: '.4rem', left: '-3rem', fontSize: '2rem' }} className={`icon ${icon} hidden-medium`} />
<span>{route.system} </span>
<br /><span className='text-muted'>{route.starClass} Class, </span>
{route.starClass.match(/([OBAFGKM])/) ? 'Fuel Star' : <span className='text-muted'>Not Fuel Star</span>}
{route.starClass.match(/^[OBAFGKM]/) ? 'Fuel Star' : <span className='text-muted'>Not Fuel Star</span>}
<span className='visible-medium'>
{route?.isCurrentSystem === false && <span><br />{route.distance.toLocaleString(undefined, { maximumFractionDigits: 2 })} Ly</span>}
{route?.isCurrentSystem === true && <><br />Current Location</>}
Expand All @@ -146,6 +146,9 @@ export default function NavListPage () {
{route?.isCurrentSystem === true && <>Current Location</>}
</span>
</td>
<td className='text-center' style={{width: '1rem'}}>
<i className='icon icarus-terminal-chevron-right' style={{fontSize: '1rem'}}/>
</td>
</tr>
)
})}
Expand Down

0 comments on commit 2de0691

Please sign in to comment.