Skip to content

Commit

Permalink
Aircraft info overlay for smaller screen sizes adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
Neuweiler Daniel committed Oct 17, 2022
1 parent f4f6d82 commit 7997114
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions src/components/AircraftInfoOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ScrollContainer, Indicator1 } from '@daniel.neuweiler/react-lib-module'
import { Box, Typography, IconButton } from '@mui/material';
import { useTheme, Theme } from '@mui/material/styles';
import { SxProps } from '@mui/system';
import { jsx } from '@emotion/react';
import CloseIcon from '@mui/icons-material/Close';

import { IAircraftTrack, resolvePositionSource, resolveCategory } from '../opensky';
Expand Down Expand Up @@ -438,30 +437,23 @@ const AircraftInfoOverlay: React.FC<Props> = (props) => {
sx={{
overflow: 'hidden',
position: 'relative',
height: 'calc(100vh - 160px)',
// maxHeight: '256px',
maxHeight: 'calc(100vh - 160px)',
minWidth: 268,
width: 'auto',
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
alignContent: 'flex-start',
backgroundColor: theme.palette.background.paper,
borderRadius: 2,
boxShadow: 5,
opacity: 0.9,
padding: theme.spacing(1)
}}>

<Box
sx={{
height: '100%',
width: '100%',
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
alignContent: 'flex-start'
}}>
{renderHeader()}
{renderFlightData()}

{renderHeader()}
{renderFlightData()}
</Box>
</Box>
);
}
Expand Down

0 comments on commit 7997114

Please sign in to comment.