diff --git a/src/components/media-gallery.tsx b/src/components/media-gallery.tsx index 507c7ce3f..fca1addd1 100644 --- a/src/components/media-gallery.tsx +++ b/src/components/media-gallery.tsx @@ -577,7 +577,7 @@ const MediaGallery: React.FC = (props) => { return (
diff --git a/src/components/upload.tsx b/src/components/upload.tsx index b5f29b38f..cd1d97827 100644 --- a/src/components/upload.tsx +++ b/src/components/upload.tsx @@ -141,7 +141,7 @@ const Upload: React.FC = ({ const description = dirtyDescription || (dirtyDescription !== '' && media.description) || ''; const focusX = media.meta.getIn(['focus', 'x']) as number | undefined; const focusY = media.meta.getIn(['focus', 'y']) as number | undefined; - const x = focusX ? ((focusX / 2) + .5) * 100 : undefined; + const x = focusX ? ((focusX / 2) + .5) * 100 : undefined; const y = focusY ? ((focusY / -2) + .5) * 100 : undefined; const mediaType = media.type; const mimeType = media.pleroma.get('mime_type') as string | undefined; @@ -155,7 +155,7 @@ const Upload: React.FC = ({ return (
= ({ {({ scale }) => (
{(withPreview && mediaType !== 'unknown' && Boolean(media.url)) && ( @@ -200,11 +201,16 @@ const Upload: React.FC = ({ {onDescriptionChange && ( -
+