Skip to content

Commit

Permalink
fix: moved tv canvas style to captain
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Aug 5, 2024
1 parent ec4870b commit b8e35ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 6 additions & 2 deletions app/ui/captain/CaptainPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
height: 100vh;
}

.asteroidClass {
.canvas {
width: 100%;
height: 75%;
}
position: absolute;
top: 0;
left: 0;
}
5 changes: 2 additions & 3 deletions app/ui/captain/CaptainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ export default function CaptainPage({ onAsteroidClick, fuelAmount, chemSequence

return (
<div className={styles.playPage}>
<div className={styles.asteroidClass}>
<AsteroidField onAsteroidClick={onAsteroidClick} className={styles.canvas}/>
</div>
<AsteroidField onAsteroidClick={onAsteroidClick} className={styles.canvas}/>

{/* <DirectionBar redSection={2} /> */}
<TextField text={chemSequence} />
<ResourceBar resource={Resources.Fuel} value={fuelAmount} />
Expand Down

0 comments on commit b8e35ac

Please sign in to comment.