Skip to content

Commit

Permalink
UI: border between multiple ATISs
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Oct 21, 2023
1 parent d5c8b85 commit fe93da9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atciss-frontend/src/components/ADInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const ADinfo = ({ sx }: { sx?: ThemeUIStyleObject }) => {
flexDirection: "column",
fontSize: 3,
fontFamily: "monospace",
gap: "1px",
gap: "2px",
backgroundColor: "primary",
}}
>
Expand Down
11 changes: 10 additions & 1 deletion atciss-frontend/src/components/Atis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ const Atis = ({ sx }: { sx?: ThemeUIStyleObject }) => {

if (!metarIsLoading && metars && !atisIsLoading && !adIsLoading && ads) {
return (
<Flex sx={{ ...sx, flexDirection: "column" }}>
<Flex
sx={{
...sx,
flexDirection: "column",
gap: "2px",
backgroundColor: "primary",
}}
>
{aerodromes
.filter((ad) => metars[ad] && ads[ad])
.map((aerodrome) => {
Expand Down Expand Up @@ -56,9 +63,11 @@ const Atis = ({ sx }: { sx?: ThemeUIStyleObject }) => {
return (
<Flex
sx={{
padding: 1,
flexDirection: "column",
fontSize: 3,
fontFamily: "monospace",
backgroundColor: "white",
}}
key={aerodrome}
>
Expand Down
3 changes: 2 additions & 1 deletion atciss-frontend/src/views/AtisAfw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ const AtisAfw = ({ sx }: { sx?: ThemeUIStyleObject }) => {
>
<Atis
sx={{
gridColumnEnd: "span 2",
...gridItemSx,
gridColumnEnd: "span 2",
padding: 0,
}}
/>
<Flex
Expand Down

0 comments on commit fe93da9

Please sign in to comment.