We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1aaaf9 commit f8109d0Copy full SHA for f8109d0
dotcom-rendering/src/components/Card/Card.tsx
@@ -578,6 +578,12 @@ export const Card = ({
578
isBetaContainer,
579
});
580
581
+ const isSelfHostedVideo =
582
+ media &&
583
+ (media.type === 'default-video' ||
584
+ media.type === 'loop-video' ||
585
+ media.type === 'cinemagraph');
586
+
587
const resolvedDataLinkName =
588
media && dataLinkName
589
? appendLinkNameMedia(dataLinkName, media.type)
@@ -955,7 +961,7 @@ export const Card = ({
955
961
/>
956
962
</AvatarContainer>
957
963
)}
958
- {media.type === 'loop-video' && (
964
+ {isSelfHostedVideo && (
959
965
<Island
960
966
priority="critical"
967
defer={{ until: 'visible' }}
0 commit comments