Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Make the audio title in global player a link #1370

Merged
merged 1 commit into from
May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/components/VAudioTrack/layouts/VGlobalLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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: {
Expand Down