Skip to content

Commit

Permalink
Switch render from img to EuiImage for step view.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Jan 25, 2021
1 parent d6c5170 commit 0b2341f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const StepScreenshotDisplay: FC<StepScreenshotDisplayProps> = ({
closePopover={() => setIsImagePopoverOpen(false)}
isOpen={isImagePopoverOpen}
>
<img
<EuiImage
alt={
stepName
? i18n.translate('xpack.uptime.synthetics.screenshotDisplay.thumbnailAltText', {
Expand All @@ -114,7 +114,7 @@ export const StepScreenshotDisplay: FC<StepScreenshotDisplayProps> = ({
}
)
}
src={imgSrc}
url={imgSrc}
style={{ width: POPOVER_IMG_WIDTH, height: POPOVER_IMG_HEIGHT, objectFit: 'contain' }}
/>
</EuiPopover>
Expand Down

0 comments on commit 0b2341f

Please sign in to comment.