@@ -190,8 +181,8 @@ watch(() => props.id, fetchData, { immediate: true })
{{ t('components.library.ArtistBase.button.embed') }}
diff --git a/front/src/components/library/TrackBase.vue b/front/src/components/library/TrackBase.vue
index 8522b3c9e..4aeed0dba 100644
--- a/front/src/components/library/TrackBase.vue
+++ b/front/src/components/library/TrackBase.vue
@@ -11,6 +11,7 @@ import { useStore } from '~/store'
import axios from 'axios'
import ActorLink from '~/components/common/ActorLink.vue'
+import ArtistCreditLabel from '~/components/audio/ArtistCreditLabel.vue'
import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
import EmbedWizard from '~/components/audio/EmbedWizard.vue'
@@ -76,6 +77,8 @@ const attributedToUrl = computed(() => router.resolve({
}
})?.href)
+const artistCredit = track.value?.artist_credit
+
const totalDuration = computed(() => track.value?.uploads[0]?.duration ?? 0)
const { t } = useI18n()
@@ -126,271 +129,253 @@ watch(showDeleteModal, (newValue) => {
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+ {{ track.title }}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('components.library.TrackBase.link.domain', { domain }) }}
-
-
-
- {{ t('components.library.TrackBase.button.embed') }}
-
-
-
- {{ t('components.library.TrackBase.link.wikipedia') }}
-
-
-
- {{ t('components.library.TrackBase.link.discogs') }}
-
-
-
- {{ t('components.library.TrackBase.button.edit') }}
-
-
-
- {{ t('components.library.TrackBase.button.delete') }}
-
-
-
-
-
- {{ obj.label }}
-
-
-
-
-
- {{ t('components.library.TrackBase.link.moderation') }}
-
-
-
- {{ t('components.library.TrackBase.link.django') }}
-
-
-
-
-
-
-
-
-
-
-
- {{ t('components.library.TrackBase.subtitle.with-uploader') }}
-
-
- {{ t('components.library.TrackBase.subtitle.without-uploader') }}
-
-
+
-
-
-
+
-
-
+
+
+
+
+
+
+
+ {{ t('components.library.TrackBase.link.domain', { domain }) }}
+
+
+
+ {{ t('components.library.TrackBase.button.embed') }}
+
+
+
+ {{ t('components.library.TrackBase.link.wikipedia') }}
+
+
+
+ {{ t('components.library.TrackBase.link.discogs') }}
+
+
+
+ {{ t('components.library.TrackBase.button.edit') }}
+
+
+
+ {{ t('components.library.TrackBase.button.delete') }}
+
+
+
+
+
+ {{ obj.label }}
+
+
+
+
+
+ {{ t('components.library.TrackBase.link.moderation') }}
+
+
+
+ {{ t('components.library.TrackBase.link.django') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('components.library.TrackBase.subtitle.with-uploader') }}
+
+
+ {{ t('components.library.TrackBase.subtitle.without-uploader') }}
+
+
-
-
- {{ t('components.library.TrackBase.button.cancel') }}
-
-
-
-
-
-
- {{ t('components.library.TrackBase.modal.delete.content.warning') }}
-
-
+
+
+
-
-
- {{ t('components.library.TrackBase.button.cancel') }}
-
-
- {{ t('components.library.TrackBase.button.delete') }}
-
-
-
-
+
-
+
+
+
+ {{ t('components.library.TrackBase.button.cancel') }}
+
+
+
+
+
+
+ {{ t('components.library.TrackBase.modal.delete.content.warning') }}
+
+
+
+
+
+ {{ t('components.library.TrackBase.button.cancel') }}
+
+
+ {{ t('components.library.TrackBase.button.delete') }}
+
+
+
+
+
+
diff --git a/front/src/components/ui/pill.scss b/front/src/components/ui/pill.scss
index fcc71155a..be319be7f 100644
--- a/front/src/components/ui/pill.scss
+++ b/front/src/components/ui/pill.scss
@@ -35,6 +35,7 @@
overflow: hidden;
height: calc(2em - 4px);
margin: 2px;
+ align-content: center;
+ .pill-content {
padding-left: 0.25em;
@@ -45,6 +46,10 @@
width: 100%;
}
+ > i.bi {
+ font-size: 18px;
+ }
+
> img {
object-fit: cover;
}