From f7dc1e870c1914c1ad04988e3bfd9e6ff6ad32bd Mon Sep 17 00:00:00 2001 From: npub1cr79sy35cdv9vqsnnmkrgl8d0wp27edk7mqsw2p5s52upsrv28pszw3kur Date: Thu, 30 Jul 2026 16:48:30 +0200 Subject: [PATCH] feat(desktop): compact rich link preview cards Per feedback in the buzz-frontend thread: shrink the preview card by moving the OG image from a full-width banner (max-h-44) to a 64px thumbnail beside the text, Slack-compact style. Card height is now bounded by the two-line description regardless of image aspect. Co-authored-by: Thomas Petersen Signed-off-by: Thomas Petersen --- .../src/shared/ui/rich-link-preview-card.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/desktop/src/shared/ui/rich-link-preview-card.tsx b/desktop/src/shared/ui/rich-link-preview-card.tsx index 688e7e2e38..1e930febb0 100644 --- a/desktop/src/shared/ui/rich-link-preview-card.tsx +++ b/desktop/src/shared/ui/rich-link-preview-card.tsx @@ -43,7 +43,7 @@ function PreviewImage({ src }: { src: string }) { return ( setFailed(true)} src={src} @@ -97,19 +97,23 @@ export function RichLinkPreviewCard({ )} data-rich-link-preview="" > -
- - {metadata.siteName ?? hostname} -
-
- {metadata.title} -
- {metadata.description ? ( -
- {metadata.description} +
+
+
+ + {metadata.siteName ?? hostname} +
+
+ {metadata.title} +
+ {metadata.description ? ( +
+ {metadata.description} +
+ ) : null}
- ) : null} - {metadata.imageUrl ? : null} + {metadata.imageUrl ? : null} +