Add simpleimg to title cell

This commit is contained in:
jeffvli 2023-07-29 10:50:42 -07:00
parent 93e00e7afb
commit 9f55238b74

View file

@ -5,6 +5,7 @@ import { motion } from 'framer-motion';
import { RiAlbumFill } from 'react-icons/ri'; import { RiAlbumFill } from 'react-icons/ri';
import { generatePath } from 'react-router'; import { generatePath } from 'react-router';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { SimpleImg } from 'react-simple-img';
import styled from 'styled-components'; import styled from 'styled-components';
import type { AlbumArtist, Artist } from '/@/renderer/api/types'; import type { AlbumArtist, Artist } from '/@/renderer/api/types';
import { Text } from '/@/renderer/components/text'; import { Text } from '/@/renderer/components/text';
@ -41,8 +42,10 @@ const MetadataWrapper = styled.div`
width: 100%; width: 100%;
`; `;
const StyledImage = styled.img` const StyledImage = styled(SimpleImg)`
img {
object-fit: cover; object-fit: cover;
}
`; `;
export const CombinedTitleCell = ({ value, rowIndex, node }: ICellRendererParams) => { export const CombinedTitleCell = ({ value, rowIndex, node }: ICellRendererParams) => {