diff --git a/src/components/preview-card.tsx b/src/components/preview-card.tsx index 9fcd47c6f..76d99220d 100644 --- a/src/components/preview-card.tsx +++ b/src/components/preview-card.tsx @@ -96,7 +96,7 @@ const PreviewCard: React.FC = ({ return (
@@ -113,7 +113,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, 'flex flex-col md:flex-row': card.type === 'link' }); + 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', { '!block': horizontal, 'border-gray-200 dark:border-gray-800': compact, interactive, 'flex flex-col md:flex-row': card.type === 'link' }); const ratio = getRatio(card); const height = (compact && !embedded) ? (width / (16 / 9)) : (width / ratio); @@ -182,7 +182,7 @@ const PreviewCard: React.FC = ({ } embed = ( -
+
{canvas} {thumbnail} @@ -192,7 +192,7 @@ const PreviewCard: React.FC = ({ @@ -206,7 +206,7 @@ const PreviewCard: React.FC = ({ > )}