From 49a142b878d4f1f006c0ccb3a6cf753bc5b87870 Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Tue, 19 Nov 2024 12:57:07 +0000 Subject: [PATCH] only display max 2 sublinks on standard cards in flexible general container (#12870) --- dotcom-rendering/src/components/FlexibleGeneral.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotcom-rendering/src/components/FlexibleGeneral.tsx b/dotcom-rendering/src/components/FlexibleGeneral.tsx index c671018cab..1ed821668e 100644 --- a/dotcom-rendering/src/components/FlexibleGeneral.tsx +++ b/dotcom-rendering/src/components/FlexibleGeneral.tsx @@ -363,7 +363,10 @@ export const StandardCardLayout = ({ image={showImage ? card.image : undefined} imageLoading={imageLoading} imagePositionOnDesktop={'left'} - supportingContent={card.supportingContent} + supportingContent={card.supportingContent?.slice( + 0, + 2, + )} supportingContentAlignment="vertical" supportingContentPosition="outer" imageSize={'medium'}