You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotcom-rendering/src/components/Card/Card.tsx
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -522,20 +522,27 @@ export const Card = ({
522
522
`}
523
523
`}
524
524
>
525
-
{/* We add this card footer here because ordinarily, it's either the pill or the footer, but
526
-
we need to display the date on these cards if they appear in the storylines section */}
525
+
{/* Ordinarily, it's either the pill or the footer, but we want to display the date on these cards if they appear in the storylines section on tag pages.
526
+
Bit of padding to align with the start of the pill type.
{/* why is this needed, to hide the headline if we're in the splash? */}
1255
+
{/* In the storylines section on tag pages, the flex splash is used to display key stories.
1256
+
This is shown as a large image taken from the first article in the group, and the headlines of the first four key articles (include that of the first article).
1257
+
Therefore, we don't display an article headline in the conventional sense, these are displayed as "supporting content".
1258
+
However, simply passing an empty string as the article headline still reserves space, so this check enables us to avoid rendering that space at all.
0 commit comments