diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index e42b9d2..82d7219 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -122,38 +122,36 @@ const CardComponent = ({ ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type ?? "universal")} - {inView && ( - {item.Name { - e.currentTarget.style.setProperty("opacity", "1"); - }} - onLoadStart={(e) => console.log(e)} - className="card-image" - /> - )} - + {item.Name { + e.currentTarget.style.setProperty("opacity", "1"); + }} + onLoadStart={(e) => console.log(e)} + className="card-image" + /> {inView && !disableOverlay && (
) : currentViewType !== BaseItemKind.Audio ? ( -
- {virtualizer.getVirtualItems().map((virtualRow) => { - const index = virtualRow.index; - const displayItems = []; - const fromIndex = index * itemsPerRow; - const toIndex = Math.min( - fromIndex + itemsPerRow, - items.data?.TotalRecordCount ?? 0, - ); - for (let i = fromIndex; i < toIndex; i++) { - const item = items.data?.Items?.[i]; - if (!item) return null; - displayItems.push( -
- -
, - ); - } - return ( -
- {displayItems} -
- ); - })} +
+ {items.data?.Items?.map((item) => ( + + ))}
) : (