fix: Do not use CDN image component for hover card previews

This commit is contained in:
Tom Moor
2023-07-29 22:33:23 -04:00
parent ccdcda372f
commit a3983c36c9

View File

@@ -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;