From 1000a1797a61979d2a5e1bfe9522a4d63bffd866 Mon Sep 17 00:00:00 2001 From: danidfra Date: Sat, 2 Nov 2024 19:27:46 -0300 Subject: [PATCH] Change media-item to use only Tailwind --- .../account-gallery/components/media-item.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/features/account-gallery/components/media-item.tsx b/src/features/account-gallery/components/media-item.tsx index 1df70c965..b7c77a7d3 100644 --- a/src/features/account-gallery/components/media-item.tsx +++ b/src/features/account-gallery/components/media-item.tsx @@ -2,8 +2,8 @@ import clsx from 'clsx'; import React, { useState } from 'react'; import Blurhash from 'soapbox/components/blurhash'; -import Icon from 'soapbox/components/icon'; import StillImage from 'soapbox/components/still-image'; +import SvgIcon from 'soapbox/components/ui/icon/svg-icon'; import { useSettings } from 'soapbox/hooks'; import { isIOS } from 'soapbox/is-mobile'; @@ -80,9 +80,9 @@ const MediaItem: React.FC = ({ 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 (