Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/rmrk/Gallery/AvailableActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Loader v-model="isLoading" :status="status" />
<div v-if="accountId" class="buttons">
<b-button v-for="action in actions" :key="action" :type="iconType(action)[0]"
outlined
@click="handleAction(action)">
{{ action }}
</b-button>
Expand Down Expand Up @@ -42,7 +43,7 @@ type DescriptionTuple = [string, string] | [string];
const iconResolver: Record<string, DescriptionTuple> = {
SEND: ['is-info is-dark'],
CONSUME: ['is-danger'],
LIST: ['is-dark'],
LIST: ['is-light'],
BUY: ['is-success is-dark']
};

Expand Down
30 changes: 10 additions & 20 deletions src/components/rmrk/Gallery/GalleryItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,31 +68,16 @@

<b-skeleton :count="2" size="is-large" :active="isLoading"></b-skeleton>
<div class="price-block" v-if="hasPrice">
<div class="label">{{ $t('price') }}</div>
<div class="price-block__original">{{ nft.price | formatBalance(12, 'KSM') }}</div>
<!--<div class="label price-block__exchange">{{ this.nft.price | formatBalance(12, 'USD') }}</div>--> <!-- // price in USD -->
<div class="label">{{ $t('price') }}</div>
</div>

<template v-if="detailVisible && !nft.burned">
<!-- <PackSaver v-if="accountId" :accountId="accountId" :currentOwnerId="nft.currentOwner" :nftId="nft.id" /> -->
<b-collapse class="card mb-4" animation="slide"
aria-id="contentIdForA11y3" :open="false">
<template #trigger="props">
<div
class="card-header"
role="button"
aria-controls="contentIdForA11y3">
<p class="card-header-title">
{{ $t('actions') }}
</p>
<a class="card-header-icon">
<b-icon
:icon="props.open ? 'chevron-up' : 'chevron-down'">
</b-icon>
</a>
</div>
</template>
<div class="card-content">
<div class="card mb-4" aria-id="contentIdForA11y3">
<div class="card-content">
<div class="label ">{{ $t('actions') }}</div>
<div class="content">
<p class="subtitle">
<Auth />
Expand All @@ -107,7 +92,7 @@
</p>
</div>
</div>
</b-collapse>
</div>
</template>

<Sharing />
Expand Down Expand Up @@ -455,6 +440,11 @@ hr.comment-divider {
}
}

&-content {
padding-left: 1rem;
padding-top: 1rem;
}

&-footer {
border-radius: none;
border-top: none;
Expand Down
1 change: 1 addition & 0 deletions src/components/shared/Auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class Auth extends Vue {
.auth-avatar {
display: flex;
flex-direction: row;
margin-bottom: 1rem;
}

.auth-avatar-title {
Expand Down