Skip to content

Commit b4df25e

Browse files
Fixed height below desktop only
1 parent 0efe7fc commit b4df25e

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

dotcom-rendering/src/layouts/StandardLayoutArticleGrid.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export const StandardLayoutArticleGrid = ({
211211
const layoutType = getLayoutType({
212212
isImmersive,
213213
isFeature,
214-
orientation: isFixedHeightImage ? 'landscape' : mainMediaOrientation,
214+
orientation: mainMediaOrientation,
215215
isMedia,
216216
isShowcase,
217217
});
@@ -276,8 +276,7 @@ export const StandardLayoutArticleGrid = ({
276276
? css`
277277
${from.desktop} {
278278
align-self: start;
279-
${!isFixedHeightImage &&
280-
mainMediaAspectRatio != null &&
279+
${mainMediaAspectRatio != null &&
281280
`aspect-ratio: ${mainMediaAspectRatio.replace(':', ' / ')};`}
282281
${layoutType === 'immersiveLandscape' &&
283282
`margin-left: -20px;
@@ -292,14 +291,16 @@ export const StandardLayoutArticleGrid = ({
292291
293292
${isFixedHeightImage &&
294293
css`
295-
position: relative;
296-
height: 469px;
297-
overflow: hidden;
298-
background-color: ${headlineBackgroundImmersive};
294+
${until.desktop} {
295+
position: relative;
296+
height: 469px;
297+
overflow: hidden;
298+
background-color: ${headlineBackgroundImmersive};
299299
300-
> div {
301-
position: absolute;
302-
inset: 0;
300+
> div {
301+
position: absolute;
302+
inset: 0;
303+
}
303304
}
304305
`}
305306
`

0 commit comments

Comments
 (0)