Fix cards

This commit is contained in:
Prayag Prajapati committed 2023-09-06 14:30:19 +05:30
1 parent 8bd42c0f2f
commit 2527d429bc
5 files changed
+39 -14

No files matched your search

+19 -10
View File
@@ -56,6 +56,7 @@ export const Card = ({
onClick,
disableOverlay = false,
disablePadding,
overrideIcon,
}) => {
const ref = useRef();
const isVisible = useIntersecting(ref);
@@ -172,18 +173,26 @@ export const Card = ({
/>
)}
<Box className="card-image-icon-container">
{TypeIconCollectionCard[item.Type]}
{!!overrideIcon
? TypeIconCollectionCard[overrideIcon]
: TypeIconCollectionCard[item.Type]}
</Box>
<img
src={window.api.getItemImageUrl(
!!seriesId ? item.SeriesId : item.Id,
imageType,
{
quality: 90,
fillHeight: 512,
fillWidth: 512,
},
)}
src={
overrideIcon == "User"
? `${window.api.basePath}/Users/${item.Id}/Images/Primary`
: window.api.getItemImageUrl(
!!seriesId
? item.SeriesId
: item.Id,
imageType,
{
quality: 90,
fillHeight: 512,
fillWidth: 512,
},
)
}
style={{
height: "100%",
width: "100%",