Skip to content

Commit

Permalink
Adapt robotImage to small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 19, 2024
1 parent a383673 commit 6cc15ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ interface TypeProps {
}

const StyledImage = styled.img<{ $height?: string }>`
height: ${(props) => props.$height};
object-fit: contain;
max-height: ${(props) => props.$height};
max-width: 100%;
`

const StyledIcon = styled(Icon)`
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/Pages/RobotPage/RobotPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const RobotInfo = styled.div`
display: flex;
align-items: start;
gap: 1rem;
width: calc(80vw);
`
const VerticalContent = styled.div<{ $alignItems?: string }>`
display: flex;
Expand Down

0 comments on commit 6cc15ef

Please sign in to comment.