Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Make the audio title in global player a link (#1370)

Olga Bulat28969b2065f4
diff --git a/src/components/VAudioTrack/layouts/VGlobalLayout.vue b/src/components/VAudioTrack/layouts/VGlobalLayout.vue
index bf94c00ff..ed99cc178 100644
--- a/src/components/VAudioTrack/layouts/VGlobalLayout.vue
+++ b/src/components/VAudioTrack/layouts/VGlobalLayout.vue
@@ -6,11 +6,12 @@
</div>
<div class="relative flex-grow">
- <div
- class="absolute inset-x-0 z-10 top-[10.5px] px-4 flex flex-row items-center justify-between line-clamp-2 pe-12"
+ <VLink
+ :href="`/audio/${audio.id}`"
+ class="absolute inset-x-0 z-10 top-[10.5px] px-4 flex flex-row items-center justify-between line-clamp-2 pe-12 text-sr font-semibold"
>
- <p class="text-sr font-semibold">{{ audio.title }}</p>
- </div>
+ {{ audio.title }}
+ </VLink>
<slot name="controller" :usable-frac="0.5" />
</div>
@@ -23,11 +24,13 @@ import { defineComponent, PropType } from '@nuxtjs/composition-api'
import type { AudioDetail } from '~/models/media'
import VAudioThumbnail from '~/components/VAudioThumbnail/VAudioThumbnail.vue'
+import VLink from '~/components/VLink.vue'
export default defineComponent({
name: 'VGlobalLayout',
components: {
VAudioThumbnail,
+ VLink,
},
props: {
audio: {