Fixed dev docker-compose and updated vrb text

This commit is contained in:
2023-10-02 21:39:19 -04:00
parent 10e711afb6
commit 85c11aca1b
2 changed files with 12 additions and 4 deletions

View File

@@ -26,12 +26,13 @@ services:
- .env
environment:
DATABASE_HOST: db
DATABASE_PORT: 5432
SERVICE_HOST: service
SERVICE_PORT: 5000
ports:
- "${SERVICE_PORT:-5000}:5000"
build:
context: service
context: .
depends_on:
- db
networks:

View File

@@ -134,7 +134,14 @@ function MetarInfo({ metar }: { metar: Metar }) {
) : (
<></>
)}
{metar.wind_dir_degrees && metar.wind_dir_degrees == 'VRB' ? <FaArrowsSpin /> : <></>}
{metar.wind_dir_degrees && metar.wind_dir_degrees == 'VRB' ? (
<>
<FaArrowsSpin />
VRB
</>
) : (
<></>
)}
</Card.Section>
</Card>
)}
@@ -143,10 +150,10 @@ function MetarInfo({ metar }: { metar: Metar }) {
</Grid>
</Grid.Col>
<Grid.Col className='gutter-row' span={12}>
<Grid style={{ padding: '2px' }}>
<Grid style={{ paddingTop: '1em', paddingBottom: '1em' }} gutter={48}>
{metar.wx_string &&
metar.wx_string.split(' ').map((wx) => (
<Grid.Col span={4}>
<Grid.Col span={1}>
<MetarIcon wx={wx} />
</Grid.Col>
))}