From 665895f8fee2e9ac2ba6433da1f511dd6587befb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 29 Apr 2024 18:29:02 +0200 Subject: [PATCH] More cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/media-gallery.tsx | 2 +- src/components/upload.tsx | 20 ++- .../compose/components/compose-form.tsx | 6 +- .../compose/components/privacy-dropdown.tsx | 62 +++++-- src/features/compose/components/warning.tsx | 2 +- .../compose/containers/warning-container.tsx | 2 +- .../report/components/status-check-box.tsx | 12 +- src/features/video/index.tsx | 2 +- src/styles/components/compose-form.scss | 162 +----------------- src/styles/components/media-gallery.scss | 2 - src/styles/components/status.scss | 41 ++--- 11 files changed, 98 insertions(+), 215 deletions(-) diff --git a/src/components/media-gallery.tsx b/src/components/media-gallery.tsx index 507c7ce3fc..fca1addd15 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 b5f29b38f8..cd1d978275 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 && ( -
+