Commit 52fab45e authored by tom's avatar tom

fix attribute layout if num less than 4

parent 76009dde
...@@ -130,7 +130,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => { ...@@ -130,7 +130,7 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
hint="NFT attributes" hint="NFT attributes"
whiteSpace="normal" whiteSpace="normal"
> >
<Grid gap={ 2 } templateColumns="repeat(auto-fit, minmax(160px, 1fr))" w="100%"> <Grid gap={ 2 } templateColumns="repeat(auto-fill,minmax(160px, 1fr))" w="100%">
{ metadata.attributes.map((attribute, index) => ( { metadata.attributes.map((attribute, index) => (
<GridItem <GridItem
key={ index } key={ index }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment