Skip to content

Commit e00f4eb

Browse files
committed
Set height to 100% on very small screens
1 parent d590326 commit e00f4eb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dotcom-rendering/src/components/Masthead/HighlightsCard.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { css } from '@emotion/react';
22
import { isUndefined } from '@guardian/libs';
3-
import { between, from, space, until } from '@guardian/source/foundations';
3+
import { between, from, space } from '@guardian/source/foundations';
44
import { SvgCamera } from '@guardian/source/react-components';
55
import { ArticleDesign, type ArticleFormat } from '../../lib/articleFormat';
66
import { isMediaCard as isMedia } from '../../lib/cardHelpers';
@@ -38,6 +38,8 @@ const container = css`
3838
display: flex;
3939
flex-direction: column;
4040
justify-content: space-between;
41+
height: 100%;
42+
min-height: 174px;
4143
column-gap: ${space[2]}px;
4244
/** Relative positioning is required to absolutely position the card link overlay */
4345
position: relative;
@@ -52,12 +54,8 @@ const container = css`
5254
*/
5355
word-break: break-word;
5456
55-
${until.mobileMedium} {
56-
min-height: 174px;
57-
}
5857
${between.mobileMedium.and.tablet} {
5958
min-height: 194px;
60-
height: 100%;
6159
}
6260
${from.tablet} {
6361
height: 100%;

0 commit comments

Comments
 (0)