Skip to content

Commit

Permalink
chore: responsive nft image
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkynz committed Dec 6, 2023
1 parent cc37366 commit a9270aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/user/src/modules/nft/nft-detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export const NFTDetail = ({ contractPackageHash, tokenId }: NFTDetailProps) => {
}

return (
<div className="flex flex-row flex-wrap gap-8">
<div className="basis-[320px]">
<NFTAsset className="w-[320px] h-[360px]" url={data?.imageUrl} />
<div className="flex flex-row flex-wrap gap-8 justify-center">
<div className="basis-[300px]">
<NFTAsset className="w-[300px] h-[350px]" url={data?.imageUrl} />
{isLuckyBox && (
<div className="mt-6">
<ButtonOpenBox
Expand All @@ -60,7 +60,7 @@ export const NFTDetail = ({ contractPackageHash, tokenId }: NFTDetailProps) => {
</div>
)}
</div>
<div className="flex-1">
<div className="flex-1 max-w-[300px]">
<div className="typo-h3">{data?.name}</div>
<div className="mt-4 flex items-center gap-2">
<GradientAvatar name={publicKey || ""} size={20} />
Expand Down

0 comments on commit a9270aa

Please sign in to comment.