Skip to content

Commit 5d10f9a

Browse files
authored
Merge pull request #14189 from guardian/doml/hide-trails-mobile-fronts
Hide trails on fronts on small screens
2 parents 1602a28 + c52157b commit 5d10f9a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
space,
55
textSans14,
66
textSans17,
7+
until,
78
} from '@guardian/source/foundations';
89
import { Hide } from '@guardian/source/react-components';
910
import { palette } from '../../../palette';
@@ -13,6 +14,10 @@ export type TrailTextSize = 'regular' | 'large';
1314
const trailTextStyles = css`
1415
display: flex;
1516
flex-direction: column;
17+
18+
${until.tablet} {
19+
display: none;
20+
}
1621
`;
1722

1823
const bottomPadding = css`

dotcom-rendering/src/components/FeatureCard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { css } from '@emotion/react';
2-
import { from, space } from '@guardian/source/foundations';
2+
import { from, space, until } from '@guardian/source/foundations';
33
import { Hide, SvgMediaControlsPlay } from '@guardian/source/react-components';
44
import { ArticleDesign, type ArticleFormat } from '../lib/articleFormat';
55
import { secondsToDuration } from '../lib/formatTime';
@@ -127,7 +127,6 @@ const immersiveOverlayContainerStyles = css`
127127
* reduced.) The following article has more detail on non-linear gradients:
128128
* https://css-tricks.com/easing-linear-gradients/
129129
*/
130-
131130
const overlayMaskGradientStyles = (angle: string) => css`
132131
mask-image: linear-gradient(
133132
${angle},
@@ -201,6 +200,10 @@ const starRatingWrapper = css`
201200

202201
const trailTextWrapper = css`
203202
margin-top: ${space[3]}px;
203+
204+
${until.tablet} {
205+
display: none;
206+
}
204207
`;
205208

206209
const videoPillStyles = css`

0 commit comments

Comments
 (0)