diff --git a/src/components/AppImage.tsx b/src/components/AppImage.tsx index be776fb..6922f3b 100644 --- a/src/components/AppImage.tsx +++ b/src/components/AppImage.tsx @@ -16,8 +16,6 @@ const withSizeSuffix = (src: string, size: SizePreset) => { return src.replace(/(\.[a-z0-9]+)$/i, `-${w}x${h}$1`); }; -// style={{ width: 48, height: 48, objectFit: "contain" }} - const AppImage = ({ src, size, ...rest }: AppImageProps) => { let resolvedSrc = src; if (src && typeof src === "string" && !src.startsWith("http")) { diff --git a/src/features/screenshot/core/ScreenshotPreview.tsx b/src/features/screenshot/core/ScreenshotPreview.tsx index c291a16..6bfc323 100644 --- a/src/features/screenshot/core/ScreenshotPreview.tsx +++ b/src/features/screenshot/core/ScreenshotPreview.tsx @@ -1,5 +1,13 @@ -import { Box, Button, Dialog, Group, Loader, Text, Title } from "@mantine/core"; -import { AppImage } from "#/components/AppImage.tsx"; +import { + Box, + Button, + Dialog, + Group, + Loader, + Image as MantineImage, + Text, + Title, +} from "@mantine/core"; type ScreenshotPreviewProps = { screenshot: string | null; @@ -44,11 +52,10 @@ function ScreenshotPreview({ {error && {error}} {screenshot && ( -