fix(web): preserve snapshot preview size in sent messages (#11429)

Co-authored-by: Illia Panasenko <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-09-12 11:02:13 -07:00
1 parent 5349522108
commit a43f9b45ae
2 files changed
+1 -2

No files matched your search

@@ -700,7 +700,6 @@ describe("MessagesTimeline", () => {
expect(markup).toContain("t3code — Tests");
expect(markup).toContain('src="data:image/png;base64,aWNvbg=="');
expect(markup).toContain("h-28 w-52 max-w-full");
expect(markup).not.toContain("col-span-2");
expect(onAnchorReady).toHaveBeenCalledOnce();
expect(onAnchorReady).toHaveBeenCalledWith(firstEntry.message.id, 0);
});
@@ -1569,7 +1569,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
className={cn(
"bg-background/70",
image.source?.kind === "snap-shot" && image.previewUrl
? SNAP_SHOT_ATTACHMENT_FRAME_CLASS
? cn(SNAP_SHOT_ATTACHMENT_FRAME_CLASS, "col-span-2")
: "aspect-[4/3] overflow-hidden rounded-lg border border-border/80",
)}
>