From a3983c36c994bac033613db9e0fd271c8cd7d01e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 29 Jul 2023 22:33:23 -0400 Subject: [PATCH] fix: Do not use CDN image component for hover card previews --- app/components/HoverPreview/HoverPreviewLink.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/HoverPreview/HoverPreviewLink.tsx b/app/components/HoverPreview/HoverPreviewLink.tsx index 7f01f2653..702fea52e 100644 --- a/app/components/HoverPreview/HoverPreviewLink.tsx +++ b/app/components/HoverPreview/HoverPreviewLink.tsx @@ -1,6 +1,5 @@ import * as React from "react"; import styled from "styled-components"; -import Img from "@shared/editor/components/Img"; import Flex from "~/components/Flex"; import { Preview, @@ -41,7 +40,7 @@ function HoverPreviewLink({ url, thumbnailUrl, title, description }: Props) { ); } -const Thumbnail = styled(Img)` +const Thumbnail = styled.img` object-fit: cover; max-width: ${CARD_WIDTH}px; height: ${THUMBNAIL_HEIGHT}px;