onFileClick(file)}
+ aria-label={lightboxSrc ? `Preview ${file.name}` : `Open ${file.name}`}
>
-
+ >
+ )}
+ {file.uploading && (
+
+
+
+ )}
+
+ )
+
+ return (
+ /* Owns the width cap: it anchors the remove badge, which a max-content button would strand. */
+
+ {lightboxSrc ? (
+
+ {preview}
+
+ ) : (
+ preview
+ )}
{!file.uploading && (