- {regularImages.length > 0 && (
+ {(regularImages.length > 0 || userVideos.length > 0) && (
{regularImages.map((image) => (
))}
+ {userVideos.map((file) => {
+ const isOpening = ctx.openingVideoAttachmentId === file.id;
+ return (
+
+
+
+ );
+ })}
)}
{previewAnnotations.map((annotation, index) => (
@@ -1111,9 +1141,9 @@ function UserTimelineRow({ row }: { row: Extract
))}
- {userFiles.length > 0 || unknownAttachments.length > 0 ? (
+ {otherUserFiles.length > 0 || unknownAttachments.length > 0 ? (
- {userFiles.map((file) => {
+ {otherUserFiles.map((file) => {
const content = (
<>
@@ -1141,7 +1171,7 @@ function UserTimelineRow({ row }: { row: Extract ctx.onFileDownload(file)}
+ onClick={() => ctx.onFileOpen(file)}
className="flex min-w-0 cursor-pointer items-center gap-2 rounded-md py-1 text-left text-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
>
{content}