From 479d9a5c4adb3c26b1465e488052fb138f9fd690 Mon Sep 17 00:00:00 2001 From: Isaac Mann Date: Fri, 6 Oct 2023 08:21:54 -0400 Subject: [PATCH] fix(nx-dev): video cards formatting (#19449) --- .../src/lib/tags/cards.component.tsx | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx b/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx index a31ceb6189e26..8efef4e8693e0 100644 --- a/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx +++ b/nx-dev/ui-markdoc/src/lib/tags/cards.component.tsx @@ -131,25 +131,29 @@ export function Card({ const hasYoutubeId = !!youtubeRegex ? youtubeRegex[1] : ''; return ( -
{!!hasYoutubeId && ( - Youtube Link +
+ Youtube Link +
)} -
- +
+ {!hasYoutubeId ? iconMap[type] : null} {title} - + {description ? ( -

{description}

+

{description}

) : null} {/*HOVER ICON*/} @@ -157,6 +161,6 @@ export function Card({
-
+ ); }