Skip to content

Commit

Permalink
Merge pull request #457 from Giphy/bottle-data-fix-3
Browse files Browse the repository at this point in the history
Bottle data fix 3
  • Loading branch information
giannif authored Nov 5, 2024
2 parents 059f9ed + e73400e commit 689cc9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-shrimps-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@giphy/react-components': minor
---

move bottle data outside of picture tag
2 changes: 1 addition & 1 deletion packages/react-components/src/components/gif.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ const Gif = ({
alt={getAltText(gif)}
onLoad={shouldShowMedia ? onImageLoad : () => {}}
/>
{isAd && bottleData?.tags?.map((tag: string, index: number) => <BottleData src={tag} key={index} />)}
</picture>
{isAd && bottleData?.tags?.map((tag: string, index: number) => <BottleData src={tag} key={index} />)}
{Overlay && (
// only render the overlay on the client since it depends on shouldShowMedia
<RenderOnClient>
Expand Down

0 comments on commit 689cc9f

Please sign in to comment.