From 1f76fa6c72025f05840c52848b7e021029f6331e Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Tue, 28 Jul 2026 08:24:01 -0700 Subject: [PATCH] refactor(previews): remove preview-image caption and type label from cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove the "Automatic preview from {domain}" gradient overlay on preview images; simplify the img alt text to "Preview from {domain}" - Drop the "· {typeLabel}" suffix (PR/issue/repo/file/link/etc.) from the card metadata row — the provider name and logo already convey the source, so the row now shows just the provider - typeLabel stays in the SupportedLinkPreview model since it still powers the accessible aria-label ("Open GitHub PR: ...") Signed-off-by: Taylor Ho Co-authored-by: Taylor Ho Signed-off-by: Taylor Ho --- desktop/src/shared/ui/link-preview-attachment.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/desktop/src/shared/ui/link-preview-attachment.tsx b/desktop/src/shared/ui/link-preview-attachment.tsx index 8c81da33b..2a4d75bff 100644 --- a/desktop/src/shared/ui/link-preview-attachment.tsx +++ b/desktop/src/shared/ui/link-preview-attachment.tsx @@ -131,13 +131,10 @@ export function LinkPreviewAttachment({ {showImage ? (
{`Automatic -
- Automatic preview from {preview.imageDomain} -
) : null} {!showImage ? ( @@ -148,8 +145,6 @@ export function LinkPreviewAttachment({
{preview.provider} - - {preview.typeLabel}
{preview.title}