Skip to content

Commit

Permalink
fix: adjust banner height for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
TedxTed authored and Logos50607 committed Dec 19, 2024
1 parent 4d1fed5 commit 0d01186
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/ProgramPage/Secondary/Banner/PictureBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const StyledWrapper = styled.div<{ width?: { desktop: string; mobile: string } }
position: relative;
overflow: ${props => (props.width ? 'visible' : 'hidden')};
height: calc(100vw * (9 / 16));
@media (max-width: ${BREAK_POINT}px) {
height: 40vh;
}
@media (min-width: ${BREAK_POINT}px) {
height: ${props => (props.width ? props.width.desktop : 'auto')};
}
Expand Down

0 comments on commit 0d01186

Please sign in to comment.