Skip to content

Commit c829cb1

Browse files
committed
fix(web): snapshots and mixed media line up above the text
1 parent 720acb3 commit c829cb1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,11 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
526526
className={cn(
527527
"bg-background/70",
528528
image.source?.kind === "snap-shot" && image.previewUrl
529-
? cn(SNAP_SHOT_ATTACHMENT_FRAME_CLASS, "col-span-2")
529+
? cn(
530+
SNAP_SHOT_ATTACHMENT_FRAME_CLASS,
531+
"col-span-2",
532+
standaloneMedia && "justify-self-end",
533+
)
530534
: loneImage
531535
? cn(MEDIA_EDGE_CLASS_NAME, "overflow-hidden rounded-2xl")
532536
: collage
@@ -538,7 +542,9 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
538542
index === regularImages.length - 1 &&
539543
"col-span-2",
540544
)
541-
: "aspect-[4/3] overflow-hidden rounded-lg border border-border/80",
545+
: standaloneMedia
546+
? cn(MEDIA_EDGE_CLASS_NAME, "aspect-[4/3] overflow-hidden rounded-2xl")
547+
: "aspect-[4/3] overflow-hidden rounded-lg border border-border/80",
542548
)}
543549
>
544550
{image.previewUrl ? (

0 commit comments

Comments
 (0)