From 3a87a9a4095ec2cf8f26a25533a9ef2808bf7836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sat, 6 Sep 2025 21:54:34 +0200 Subject: [PATCH] pl-fe: fix preview card? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/preview-card.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/components/preview-card.tsx b/packages/pl-fe/src/components/preview-card.tsx index 79966ab15..90c81bcac 100644 --- a/packages/pl-fe/src/components/preview-card.tsx +++ b/packages/pl-fe/src/components/preview-card.tsx @@ -38,7 +38,6 @@ const PreviewCard: React.FC = ({ compact = false, cacheWidth, onOpenMedia, - horizontal, }): JSX.Element => { const [width, setWidth] = useState(defaultWidth); const [embedded, setEmbedded] = useState(false); @@ -113,8 +112,8 @@ const PreviewCard: React.FC = ({ }; const interactive = card.type !== 'link'; - horizontal = typeof horizontal === 'boolean' ? horizontal : interactive || embedded; - const className = clsx('status-card relative z-10 bg-white black:bg-black dark:bg-primary-900', { horizontal, compact, interactive }, `status-card--${card.type}`); + const horizontal = interactive || embedded; + const className = clsx('status-card relative z-10 flex-col bg-white black:bg-black dark:bg-primary-900 md:flex-row', { horizontal, compact, interactive }, `status-card--${card.type}`); const ratio = getRatio(card); const height = (compact && !embedded) ? (width / (16 / 9)) : (width / ratio);