From fcf00b9de195885bd7f31ca2a449d6ebcae6aca7 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 15 Jan 2023 21:03:24 -0800 Subject: [PATCH] Use native img on table images --- .../components/virtual-table/cells/combined-title-cell.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/components/virtual-table/cells/combined-title-cell.tsx b/src/renderer/components/virtual-table/cells/combined-title-cell.tsx index dae4ce09..6ba27bd8 100644 --- a/src/renderer/components/virtual-table/cells/combined-title-cell.tsx +++ b/src/renderer/components/virtual-table/cells/combined-title-cell.tsx @@ -5,7 +5,6 @@ import { motion } from 'framer-motion'; import { RiAlbumFill } from 'react-icons/ri'; import { generatePath } from 'react-router'; import { Link } from 'react-router-dom'; -import { SimpleImg } from 'react-simple-img'; import styled from 'styled-components'; import type { AlbumArtist, Artist } from '/@/renderer/api/types'; import { Text } from '/@/renderer/components/text'; @@ -41,10 +40,8 @@ const MetadataWrapper = styled.div` width: 100%; `; -const StyledImage = styled(SimpleImg)` - img { - object-fit: cover; - } +const StyledImage = styled.img` + object-fit: cover; `; export const CombinedTitleCell = ({ value, rowIndex, node }: ICellRendererParams) => {