Skip to content

Commit b9392b0

Browse files
committed
Revert content wrapper flex-shrink. Add flex-grow to loop video wrapper
1 parent f98e9da commit b9392b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { ImagePositionType, ImageSizeType } from './ImageWrapper';
77
const sizingStyles = css`
88
display: flex;
99
flex-direction: column;
10-
flex: 1 0;
10+
flex-grow: 1;
1111
justify-content: space-between;
1212
`;
1313

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,14 @@ export const ImageWrapper = ({
159159
imagePositionOnDesktop === 'left' || imagePositionOnDesktop === 'right';
160160
const isHorizontalOnMobile =
161161
imagePositionOnMobile === 'left' || imagePositionOnMobile === 'right';
162+
162163
return (
163164
<div
164165
css={[
165166
(imageType === 'slideshow' ||
166167
imageType === 'picture' ||
167-
imageType === 'video') &&
168+
imageType === 'video' ||
169+
imageType === 'loop-video') &&
168170
isHorizontalOnDesktop &&
169171
flexBasisStyles({
170172
imageSize,
@@ -182,7 +184,6 @@ export const ImageWrapper = ({
182184
}
183185
`,
184186
isHorizontalOnMobile && fixImageWidth(imageFixedSizes),
185-
186187
isHorizontalOnDesktop &&
187188
css`
188189
${from.tablet} {

0 commit comments

Comments
 (0)