| ... | ... | @@ -2324,6 +2324,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message" |
| 2324 | 2324 | }), |
| 2325 | 2325 | ); |
| 2326 | 2326 | const regularImages = userImages.filter((image) => !image.name.startsWith("preview-annotation-")); |
| 2327 | const hasMediaGrid = regularImages.length + userVideos.length > 2; |
| 2327 | 2328 | const unchippedFiles = otherUserFiles.filter((file) => !chippedAttachmentIds.has(file.id)); |
| 2328 | 2329 | const annotationRecordIds = useMemo( |
| 2329 | 2330 | () => |
| ... | ... | @@ -2487,10 +2488,22 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message" |
| 2487 | 2488 | {row.message.inputIntent && row.message.inputIntent !== "turn_start" ? ( |
| 2488 | 2489 | <UserMessageIntentMarker intent={row.message.inputIntent} /> |
| 2489 | 2490 | ) : null} |
| 2490 | | <div className="relative max-w-[80%] rounded-2xl bg-message p-3 text-message-foreground"> |
| 2491 | <div |
| 2492 | className={cn( |
| 2493 | "relative max-w-[80%] rounded-2xl bg-message p-3 text-message-foreground", |
| 2494 | hasMediaGrid && "w-[80%]", |
| 2495 | )} |
| 2496 | > |
| 2491 | 2497 | <MessageAuthorHeading>You</MessageAuthorHeading> |
| 2492 | 2498 | {(regularImages.length > 0 || userVideos.length > 0) && ( |
| 2493 | | <div className="mb-2 grid max-w-[210px] grid-cols-2 gap-2"> |
| 2499 | <div |
| 2500 | className={cn( |
| 2501 | "mb-2 grid gap-2", |
| 2502 | hasMediaGrid |
| 2503 | ? "grid-cols-[repeat(auto-fit,minmax(min(100%,100px),1fr))]" |
| 2504 | : "max-w-[210px] grid-cols-2", |
| 2505 | )} |
| 2506 | > |
| 2494 | 2507 | {regularImages.map((image) => ( |
| 2495 | 2508 | <div |
| 2496 | 2509 | key={image.id} |