|
2 | 2 | <div class="wrapper"> |
3 | 3 | <div class="columns"> |
4 | 4 | <div class="column is-8 is-offset-2"> |
5 | | - <div class="box"> |
| 5 | + <div :class="{ box: detailVisible }"> |
6 | 6 | <b-image |
7 | 7 | v-if="!isLoading && imageVisible" |
8 | 8 | :src="nft.image || require('@/assets/kodadot_logo_v1_transparent_400px.png')" |
|
11 | 11 | ratio="1by1" |
12 | 12 | ></b-image> |
13 | 13 | <b-skeleton height="524px" size="is-large" :active="isLoading"></b-skeleton> |
14 | | - |
15 | | - <MediaResolver v-if="nft.animation_url" :class="{ withPicture: imageVisible }" :src="nft.animation_url" :mimeType="mimeType" /> |
16 | | - <Appreciation :accountId="accountId" :currentOwnerId="nft.currentOwner" :nftId="nft.id" /> |
17 | | - <PackSaver v-if="accountId" :accountId="accountId" :currentOwnerId="nft.currentOwner" :nftId="nft.id" /> |
| 14 | + <template v-if="detailVisible"> |
| 15 | + <MediaResolver v-if="nft.animation_url" :class="{ withPicture: imageVisible }" :src="nft.animation_url" :mimeType="mimeType" /> |
| 16 | + <Appreciation :accountId="accountId" :currentOwnerId="nft.currentOwner" :nftId="nft.id" /> |
| 17 | + <PackSaver v-if="accountId" :accountId="accountId" :currentOwnerId="nft.currentOwner" :nftId="nft.id" /> |
18 | 18 |
|
19 | 19 | <b-collapse class="card" animation="slide" |
20 | 20 | aria-id="contentIdForA11y3" :open="false"> |
|
42 | 42 | </div> |
43 | 43 | </div> |
44 | 44 | </b-collapse> |
| 45 | + </template> |
45 | 46 | <Name :nft="nft" :isLoading="isLoading" /> |
46 | 47 | <div class="card"> |
47 | 48 | <div class="card-content"> |
48 | | - <p class="title is-size-2"> |
| 49 | + <p class="title" :class="[ detailVisible ? 'is-size-2' : 'is-size-4' ]"> |
49 | 50 | {{ $t('legend')}} |
50 | 51 | </p> |
51 | 52 | <p class="subtitle is-size-7"> |
|
54 | 55 | </b-tag> |
55 | 56 | <p v-if="!isLoading" |
56 | 57 | class="subtitle is-size-5"> |
57 | | - <!-- <markdown-it-vue class="md-body" :content="nft.description" /> --> |
58 | | - <!-- <markdown-it-vue-light class="md-body" :content="nft.description" /> --> |
59 | 58 | {{ nft.description }} |
60 | 59 | </p> |
61 | 60 | <b-skeleton :count="3" size="is-large" :active="isLoading"></b-skeleton> |
62 | 61 | </p> |
63 | 62 | </div> |
64 | 63 | </div> |
65 | | - <Facts :nft="nft" /> |
66 | | - <Sharing /> |
| 64 | + <template v-if="detailVisible"> |
| 65 | + <Facts :nft="nft" /> |
| 66 | + <Sharing /> |
| 67 | + </template> |
67 | 68 | </div> |
68 | 69 | </div> |
69 | 70 | </div> |
@@ -92,6 +93,7 @@ import api from '@/fetch'; |
92 | 93 | import { resolveMedia } from '../utils'; |
93 | 94 | import { MediaType } from '../types'; |
94 | 95 | import { MetaInfo } from 'vue-meta'; |
| 96 | +import isShareMode from '@/utils/isShareMode'; |
95 | 97 | // import { VueConstructor } from 'vue'; |
96 | 98 |
|
97 | 99 | type NFTType = NFTWithMeta; |
@@ -189,6 +191,10 @@ export default class GalleryItem extends Vue { |
189 | 191 | const { id } = this.nft; |
190 | 192 | return id; |
191 | 193 | } |
| 194 | +
|
| 195 | + get detailVisible() { |
| 196 | + return !isShareMode |
| 197 | + } |
192 | 198 | } |
193 | 199 | </script> |
194 | 200 |
|
|
0 commit comments