Skip to content

Commit 1e65807

Browse files
authored
Merge pull request #15004 from guardian/fix-looping-video-main-media-padding
Fix main media caption padding
2 parents b6c4764 + 95e1e89 commit 1e65807

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dotcom-rendering/src/components/Caption.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ export const Caption = ({
307307
shouldLimitWidth && limitedWidth,
308308
isOverlaid ? overlaidStyles(format) : bottomMarginStyles,
309309
isMainMedia &&
310-
(isBlog || mediaType === 'YoutubeVideo') &&
310+
(isBlog ||
311+
mediaType === 'YoutubeVideo' ||
312+
mediaType === 'SelfHostedVideo') &&
311313
tabletCaptionPadding,
312314
padCaption && captionPadding,
313315
isImmersive && immersivePadding,

0 commit comments

Comments
 (0)