Skip to content

Commit

Permalink
Contain inspection image in dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 29, 2025
1 parent 6f26595 commit 94e72d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { Button, Card, Dialog } from '@equinor/eds-core-react'
import { tokens } from '@equinor/eds-tokens'
import { styled } from 'styled-components'

export const StyledInspection = styled.img`
flex: 1 0 0;
align-self: stretch;
width: 80vh;
export const StyledInspection = styled.img<{ $otherContentHeight?: string }>`
max-height: calc(80vh - ${(props) => props.$otherContentHeight});
max-width: 100%;
@media (max-width: 600px) {
width: 95vw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const InspectionDialogView = ({ selectedTask, tasks }: InspectionDialogVi
</StyledDialogHeader>
<StyledDialogInspectionView>
<div>
<StyledInspection src={data} />
<StyledInspection $otherContentHeight={'174px'} src={data} />
<StyledBottomContent>
<StyledInfoContent>
<Typography variant="caption">{TranslateText('Installation') + ':'}</Typography>
Expand Down

0 comments on commit 94e72d6

Please sign in to comment.