embeddable-nfts
Advanced tools
Comparing version
{ | ||
"name": "embeddable-nfts", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Resuable, embeddable webcomponent for OpenSea assets.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -27,3 +27,3 @@ # Embeddable NFTs | ||
``` | ||
<script src="https://unpkg.com/embeddable-nfts@0.4.1/dist/nft-card.min.js"></script> | ||
<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script> | ||
``` | ||
@@ -30,0 +30,0 @@ |
@@ -265,6 +265,2 @@ import { css, customElement, html, LitElement, property } from 'lit-element' | ||
public async connectedCallback() { | ||
super.connectedCallback() | ||
} | ||
public getContainerHeight() { | ||
@@ -271,0 +267,0 @@ let containerHeight |
@@ -50,3 +50,2 @@ import { css, customElement, html, LitElement, property } from 'lit-element' | ||
border-right: 1px solid #e2e6ef; | ||
padding: 26px; | ||
background-size: cover; | ||
@@ -61,2 +60,3 @@ box-sizing: border-box; | ||
height: 100%; | ||
box-sizing: border-box; | ||
} | ||
@@ -198,7 +198,10 @@ | ||
<div class="card-front ${classMap({ 'is-vertical': !this.horizontal })}"> | ||
<info-button | ||
style="position: absolute; top: 5px; left: 5px" | ||
@flip-event="${(e: any) => this.eventHandler(e, 'flip')}" | ||
></info-button> | ||
${this.asset.traits.length > 0 | ||
? html` | ||
<info-button | ||
style="position: absolute; top: 5px; right: 5px" | ||
@flip-event="${(e: any) => this.eventHandler(e, 'flip')}" | ||
></info-button> | ||
` | ||
: ''} | ||
${this.getAssetImageTemplate()} | ||
@@ -205,0 +208,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
7396726
07933
0.03%