From 14c3defd239e2410754f50552205f5e26ae04984 Mon Sep 17 00:00:00 2001 From: TerryM Date: Fri, 29 May 2026 12:38:50 +0800 Subject: [PATCH] feat: show attachment preview thumbnail in document bubble Use thumbnailUrl/posterUrl (and the image url itself for image-type attachments) inside the 52x52 box of the file/document bubble, falling back to the file-type icon when no preview is available. Also tune the deep-link scroll-mt offset (82px / 98px) so a targeted bubble lands just below the sticky header. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../messageStream/MessageBubble.tsx | 2 +- .../messageStream/bubbles/FileDocBubble.tsx | 27 ++++++++++++++----- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/components/messageStream/MessageBubble.tsx b/src/components/messageStream/MessageBubble.tsx index 6dda60f..5dbfc93 100644 --- a/src/components/messageStream/MessageBubble.tsx +++ b/src/components/messageStream/MessageBubble.tsx @@ -35,7 +35,7 @@ export function MessageBubble({ post }: { post: Post }) { return (
- + {previewUrl ? ( + {displayFilename} + ) : ( + + )}