From 56fd528a39b2108a467c1af9920461afaadc12ce Mon Sep 17 00:00:00 2001 From: danidfra Date: Mon, 4 Nov 2024 11:46:43 -0300 Subject: [PATCH] Change className "status-card" in preview-card to use only Tailwind --- src/components/preview-card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/preview-card.tsx b/src/components/preview-card.tsx index 71d56bfb0..3b1c1796e 100644 --- a/src/components/preview-card.tsx +++ b/src/components/preview-card.tsx @@ -108,7 +108,7 @@ const PreviewCard: React.FC = ({ const interactive = card.type !== 'link'; horizontal = typeof horizontal === 'boolean' ? horizontal : interactive || embedded; - const className = clsx('flex overflow-hidden rounded-lg border border-solid border-gray-200 text-sm text-gray-800 no-underline dark:border-gray-800 dark:text-gray-200', { horizontal, compact, interactive }, `status-card--${card.type}`); + const className = clsx('flex overflow-hidden rounded-lg border border-solid border-gray-200 text-sm text-gray-800 no-underline dark:border-gray-800 dark:text-gray-200', { horizontal, compact, interactive, 'flex flex-col md:flex-row': card.type === 'link' }); const ratio = getRatio(card); const height = (compact && !embedded) ? (width / (16 / 9)) : (width / ratio);