Skip to content

Commit

Permalink
community: add support icons (links) to artwork cards
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-hoffman committed Jun 21, 2021
1 parent 7ee1747 commit 3b73b1f
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/components/MediaIterator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,32 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved.
</span>
</v-tooltip>

<!-- item::button:support-link -->
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn
v-on="on"
v-if="item.supportLink"
@click.stop="$utils.openLink(item.supportLink)"
icon
class="media-picker__item-icon--support-link"
>
<v-icon
>mdi-heart-outline
</v-icon>
</v-btn>
</template>
<span>
Support this artist
<v-layout align-center>
<v-icon class="mr-3" size="16px">
mdi-open-in-new
</v-icon>
{{item.supportLink}}
</v-layout>
</span>
</v-tooltip>

<!-- item::button:remove -->
<v-tooltip bottom>
<template v-slot:activator="{ on }">
Expand Down Expand Up @@ -334,6 +360,7 @@ export default {
.v-btn.media-picker__item-icon--selected,
.v-btn.media-picker__item-icon--source-link,
.v-btn.media-picker__item-icon--support-link,
.v-btn.media-picker__item-icon--remove {
z-index: 2;
padding: 18px;
Expand All @@ -342,11 +369,13 @@ export default {
.v-btn.media-picker__item-icon--selected .v-icon,
.v-btn.media-picker__item-icon--source-link .v-icon,
.v-btn.media-picker__item-icon--support-link .v-icon,
.v-btn.media-picker__item-icon--remove .v-icon {
color: var(--color-2) !important;
}
.v-btn.media-picker__item-icon--source-link {
.v-btn.media-picker__item-icon--source-link,
.v-btn.media-picker__item-icon--support-link {
opacity: 0;
}
Expand All @@ -362,7 +391,9 @@ export default {
}
.media-picker__item:hover
.media-picker__item-icon--source-link {
.media-picker__item-icon--source-link,
.media-picker__item:hover
.media-picker__item-icon--support-link {
opacity: 1;
}
Expand Down

0 comments on commit 3b73b1f

Please sign in to comment.