1,
+ '!size-[50px] !inset-auto !float-left !mr-[50px]': compact,
})}
key={attachment.id}
style={{ position, float, left, top, right, bottom, height, width: `${width}%` }}
>
{last && total > ATTACHMENT_LIMIT && (
-
{/* eslint-disable-line formatjs/no-literal-string-in-jsx */}
+
{/* eslint-disable-line formatjs/no-literal-string-in-jsx */}
+{total - ATTACHMENT_LIMIT + 1}
)}
{visible && thumbnail}
@@ -561,6 +559,7 @@ const MediaGallery: React.FC
= (props) => {
dimensions={sizeData.itemsDimensions[i]}
last={i === ATTACHMENT_LIMIT - 1}
total={media.size}
+ compact={compact}
/>
));
@@ -578,7 +577,7 @@ const MediaGallery: React.FC = (props) => {
return (
diff --git a/src/components/upload.tsx b/src/components/upload.tsx
index 910452ef0..aa61483bc 100644
--- a/src/components/upload.tsx
+++ b/src/components/upload.tsx
@@ -166,7 +166,7 @@ const Upload: React.FC
= ({
onDragEnter={onDragEnter}
onDragEnd={onDragEnd}
>
-
+
{({ scale }) => (
= ({ attachment, onOpenMedia }) => {
conditionalAttributes.autoPlay = true;
}
thumbnail = (
-
+
);
} else if (attachment.type === 'audio') {
@@ -102,28 +102,28 @@ const MediaItem: React.FC
= ({ attachment, onOpenMedia }) => {
const fileExtensionLastIndex = remoteURL.lastIndexOf('.');
const fileExtension = remoteURL.slice(fileExtensionLastIndex + 1).toUpperCase();
thumbnail = (
-
-
-
{fileExtension}
+
+
+ {fileExtension}
);
}
if (!visible) {
icon = (
-
-
+
+
);
}
return (