feat(front): ghost trackfavorite icon in tracklist
This commit is contained in:
parent
ef8d2f7ac2
commit
66a0d72870
|
@ -192,8 +192,7 @@ const hover = ref(false)
|
|||
class="meta right floated column"
|
||||
>
|
||||
<track-favorite-icon
|
||||
class="tiny"
|
||||
:border="false"
|
||||
ghost
|
||||
:track="track"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -12,12 +12,14 @@ interface Props {
|
|||
track?: QueueTrack | Track
|
||||
button?: boolean
|
||||
border?: boolean
|
||||
ghost?: boolean
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
track: () => ({} as Track),
|
||||
button: false,
|
||||
border: false
|
||||
border: false,
|
||||
ghost: false
|
||||
})
|
||||
|
||||
const { t } = useI18n()
|
||||
|
@ -46,7 +48,8 @@ const title = computed(() => isFavorite.value
|
|||
</Button>
|
||||
<Button
|
||||
v-else
|
||||
ghost
|
||||
:ghost="ghost"
|
||||
:secondary="!ghost"
|
||||
icon="bi-heart-fill"
|
||||
:class="['ui', 'favorite-icon', {'pink': isFavorite}, {'favorited': isFavorite}, 'basic', 'circular', 'icon', {'really': !border}, 'button']"
|
||||
:aria-label="title"
|
||||
|
|
Loading…
Reference in New Issue