Skip to content

Commit 0f06782

Browse files
committed
Add image to main media of loop video test
1 parent aacc86d commit 0f06782

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dotcom-rendering/fixtures/manual/trails.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ export const loopVideoCard: DCRFrontCard = {
615615
duration: 0,
616616
width: 500,
617617
height: 400,
618+
image: 'https://media.guim.co.uk/6537e163c9164d25ec6102641f6a04fa5ba76560/0_210_5472_3283/master/5472.jpg',
618619
},
619620
image: {
620621
src: 'https://media.guim.co.uk/966bf085fb982b1103aaba42a812b09726cc0a3c/1417_104_1378_1104/master/1378.jpg',

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,13 @@ export const Card = ({
966966
containerType ===
967967
'fixed/video'
968968
}
969-
//** TODO: IMPROVE THIS MAPPING */
970-
// image size defaults to small if not provided. However, if the headline size is large or greater, we want to assume the image is also large so that the play icon is correctly sized.
969+
/*
970+
* TODO: IMPROVE THIS MAPPING
971+
*
972+
* Image size defaults to small if not provided. However, if the
973+
* headline size is large or greater, we want to assume the image
974+
* is also large so that the play icon is correctly sized.
975+
*/
971976
iconSizeOnDesktop={
972977
[
973978
'small',

0 commit comments

Comments
 (0)