feat(front): ghost trackfavorite icon in tracklist

This commit is contained in:
ArneBo 2025-01-24 02:54:18 +01:00
parent ef8d2f7ac2
commit 66a0d72870
2 changed files with 6 additions and 4 deletions

View File

@ -192,8 +192,7 @@ const hover = ref(false)
class="meta right floated column"
>
<track-favorite-icon
class="tiny"
:border="false"
ghost
:track="track"
/>
</div>

View File

@ -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"