Skip to content

Commit

Permalink
Fixed video NFT asset dimensions and vertically centered ALL NFT art (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
roederw authored Oct 13, 2021
1 parent 220fd41 commit 149d224
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion explorer/src/components/account/MetaplexNFTHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function NFTHeader({
const metadata = nftData.metadata;
return (
<div className="row align-items-begin">
<div className="col-auto ml-2">
<div className="col-auto ml-2 d-flex align-items-center">
<ArtContent metadata={metadata} pubkey={address} />
</div>

Expand Down
12 changes: 6 additions & 6 deletions explorer/src/metaplex/Art/Art.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ const VideoArtContent = ({
streamRef={(e: any) => playerRef(e)}
src={likelyVideo.replace("https://watch.videodelivery.net/", "")}
loop={true}
height={150}
width={150}
height={180}
width={320}
controls={false}
style={{ borderRadius: 12 }}
videoDimensions={{
videoHeight: 150,
videoWidth: 150,
videoWidth: 320,
videoHeight: 180,
}}
autoplay={true}
muted={true}
Expand All @@ -146,7 +146,7 @@ const VideoArtContent = ({
muted={true}
controls={true}
controlsList="nodownload"
style={{ borderRadius: 12 }}
style={{ borderRadius: 12, width: 320, height: 180 }}
loop={true}
poster={uri}
>
Expand Down Expand Up @@ -186,7 +186,7 @@ const HTMLContent = ({
frameBorder="0"
src={htmlURL}
className={`${loaded ? "d-block" : "d-none"}`}
style={{ width: 150, borderRadius: 12 }}
style={{ width: 320, height: 180, borderRadius: 12 }}
onLoad={() => {
setLoaded(true);
}}
Expand Down
1 change: 0 additions & 1 deletion explorer/src/scss/_solana.scss
Original file line number Diff line number Diff line change
Expand Up @@ -427,5 +427,4 @@ p.updated-time {
align-items: center;
justify-content: center;
width: 150px;
margin-top: 20px;
}

0 comments on commit 149d224

Please sign in to comment.