Skip to content

Commit e79ca95

Browse files
committed
fix(web): snapshot without preview uses single-tile layout
1 parent e0daa0d commit e79ca95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/chat/TimelineUserMessageRow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
491491
"mb-2 grid gap-2 last:mb-0",
492492
// One tile keeps its size without leaving an empty second column in the bubble.
493493
regularImages.length + userVideos.length === 1 &&
494-
regularImages[0]?.source?.kind !== "snap-shot"
494+
!(regularImages[0]?.source?.kind === "snap-shot" && regularImages[0].previewUrl)
495495
? "w-[101px] grid-cols-1"
496496
: "max-w-[210px] grid-cols-2",
497497
)}

0 commit comments

Comments
 (0)