Skip to content

Commit

Permalink
Adding style={{ height: 'auto' }} to the hydrogen Image insertion def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
balazsbajorics committed May 6, 2024
1 parent 7045882 commit 1464f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utopia/hydrogen.utopia.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const Components = {
{
label: 'Image',
imports: `import { Image } from '@shopify/hydrogen'`,
code: "<Image data={{ altText: 'Example image', url: 'https://cdn.shopify.com/s/files/1/0598/5959/9382/files/backpack-art-5.png', height: 'auto', }} />",
code: "<Image style={{ height: 'auto' }} data={{ altText: 'Example image', url: 'https://cdn.shopify.com/s/files/1/0598/5959/9382/files/backpack-art-5.png', height: 'auto', }} />",
},
],
},
Expand Down

0 comments on commit 1464f62

Please sign in to comment.