Skip to content

Commit

Permalink
fix: image with flex
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 17, 2024
1 parent f412eaa commit 751bf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/blocks/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class ImageComponent extends React.Component<any, { imageLoaded: boolean; load:
{amp ? (
imageContents
) : (
<picture ref={ref => (this.pictureRef = ref)}>
<picture css={{display: 'contents'}} ref={ref => (this.pictureRef = ref)}>
{srcset && srcset.match(/builder\.io/) && !this.props.noWebp && (
<source srcSet={srcset.replace(/\?/g, '?format=webp&')} type="image/webp" />
)}
Expand Down

0 comments on commit 751bf7f

Please sign in to comment.