Skip to content

Commit 9219f60

Browse files
committed
Improve ship instrumentation
* Fix bug with Safari (#36) * Improve apperance and animation
1 parent 6a08724 commit 9219f60

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/client/components/panels/ship/ship-status/ship-instrumentation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@ export default function ShipInstrumentation ({ ship, cmdrStatus, toggleSwitches,
307307
}
308308

309309
function NavigationInstrumentation ({ ship, cmdrStatus }) {
310+
310311
return (
311-
<div className={`ship-panel__navigation-instrumentation ${ship.onBoard && typeof cmdrStatus?.heading === 'number' ? '--active' : ''} text-uppercase`}
312+
<div className={`ship-panel__navigation-instrumentation ${ship.onBoard ? '--on-board' : ''} ${ship.onBoard && typeof cmdrStatus?.heading === 'number' ? '--active' : ''} text-uppercase`}
312313
style={{
313314
minHeight: '13rem',
314315
minWidth: '13rem',
@@ -357,7 +358,6 @@ function NavigationInstrumentation ({ ship, cmdrStatus }) {
357358
minHeight: '12rem',
358359
minWidth: '12rem',
359360
margin: 'auto',
360-
aspectRatio: '1',
361361
border: '.5rem double var(--color-info)',
362362
transform: `rotate(${ship.onBoard ? cmdrStatus?.heading ?? 0 : 0}deg)`,
363363
opacity: (ship.onBoard && typeof cmdrStatus?.heading === 'number') ? 1 : '.25',

src/client/css/panels/ship-panel.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,11 @@ table.ship-panel__lights td {
591591
transform: rotateX(250deg);
592592
}
593593

594-
.ship-panel__navigation-instrumentation.--active .ring {
594+
.ship-panel__navigation-instrumentation.--on-board .ring {
595595
animation: ship-panel__navigation-instrumentation-rings-animation 3s ease-in-out infinite;
596+
}
597+
598+
.ship-panel__navigation-instrumentation.--active .ring {
596599
box-shadow: 0 0 3rem 0 rgba(255,255,255,.5);
597600
}
598601

0 commit comments

Comments
 (0)