diff --git a/packages/nft/src/components/Gallery.tsx b/packages/nft/src/components/Gallery.tsx index cc0aeff8d..a4abac745 100644 --- a/packages/nft/src/components/Gallery.tsx +++ b/packages/nft/src/components/Gallery.tsx @@ -22,30 +22,25 @@ export type UserQuery = Partial<{ function NFTCard({ nft }: { nft: NFT }) { return ( -
- -
- -
-
+ <> +
+ +
{nft.name}

{nft.artist}

- -
+
+ ) } @@ -112,14 +107,65 @@ function ValueComponent({ rev, computer }: { rev: string; computer: Computer }) } function FromRevs({ revs, computer }: { revs: string[]; computer: any }) { + const cols: string[][] = [[], [], [], []] + + revs.forEach((rev, index) => { + const colNumber = index % 4 + cols[colNumber].push(rev) + }) return ( -
- {revs.map((rev) => ( -
- + <> +
+
+ {cols[0].map((rev) => ( +
+ + + +
+ ))}
- ))} -
+
+ {cols[1].map((rev) => ( +
+ + + +
+ ))} +
+
+ {cols[2].map((rev) => ( +
+ + + +
+ ))} +
+
+ {cols[3].map((rev) => ( +
+ + + +
+ ))} +
+
+ ) }