Skip to content

Commit 3ef6846

Browse files
remove the age warning and sign in gate from the filter us
1 parent d949e3e commit 3ef6846

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

dotcom-rendering/src/components/InlineProductCard.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ const card = css`
4141
background-color: ${palette('--product-card-background')};
4242
padding: ${space[2]}px ${space[3]}px ${space[3]}px;
4343
display: grid;
44-
grid-template-columns: auto 1fr;
45-
column-gap: 12px;
44+
grid-template-columns: 1fr 1fr;
45+
column-gap: 10px;
4646
row-gap: ${space[3]}px;
4747
border-top: 1px solid ${palette('--section-border-lifestyle')};
4848
max-width: 100%;
49-
5049
img {
51-
height: 165px;
52-
width: 165px;
53-
object-fit: cover;
50+
width: 100%;
51+
height: auto;
5452
}
55-
56-
${from.phablet} {
53+
${from.mobileLandscape} {
54+
column-gap: 20px;
55+
}
56+
${from.tablet} {
5757
img {
5858
height: 328px;
5959
width: 328px;
@@ -191,7 +191,7 @@ export const InlineProductCard = ({
191191
/>
192192
{!!secondaryCTA && !!secondaryUrl && (
193193
<ProductLinkButton
194-
dataComponent="inline-secondary-card-primary-button"
194+
dataComponent="inline-product-card-secondary-button"
195195
label={stripHtmlFromString(secondaryCTA)}
196196
url={secondaryUrl}
197197
priority="tertiary"

dotcom-rendering/src/components/LeftColProductCard.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ const Statistic = ({ name, value }: Statistics) => (
9292
</div>
9393
);
9494

95-
//todo -- make this a proper image generateSources() etc.
96-
9795
export const LeftColProductCard = ({
9896
brandName,
9997
productName,

dotcom-rendering/src/components/Picture.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ const decideImageWidths = ({
271271
];
272272
case 'productCard':
273273
return [
274+
{ breakpoint: breakpoints.mobile, width: 328 },
274275
{ breakpoint: breakpoints.wide, width: 220 },
275-
{ breakpoint: breakpoints.mobile, width: 165 },
276276
];
277277
case 'inline':
278278
default:
@@ -371,7 +371,7 @@ const decideImageWidths = ({
371371
];
372372
case 'productCard':
373373
return [
374-
{ breakpoint: breakpoints.mobile, width: 165 },
374+
{ breakpoint: breakpoints.mobile, width: 328 },
375375
{ breakpoint: breakpoints.wide, width: 220 },
376376
];
377377
case 'inline':

0 commit comments

Comments
 (0)