Skip to content

Commit 3926c06

Browse files
committed
fix(lyrics): cursors for lyrics are inconsistent
1 parent 780c1e2 commit 3926c06

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

resources/js/components/video/VideoLyricItem.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ withDefaults(
1616

1717
<template>
1818
<div
19-
:class="[
20-
'transition-all ease-in w-full hover:bg-neutral-800/30 ',
21-
lyric.time !== undefined ? 'cursor-pointer' : 'cursor-default',
22-
isActive ? 'bg-neutral-800/40 text-yellow-400 opacity-100 duration-300' : 'opacity-85',
23-
]"
19+
:class="['w-full transition-all ease-in hover:bg-neutral-800/30', isActive ? 'bg-neutral-800/40 text-yellow-400 opacity-100 duration-300' : 'opacity-85']"
2420
:id="`lyric-${lyric?.time ?? index}`"
2521
>
26-
<button class="px-4 sm:px-0 py-1 sm:mx-auto sm:w-4/5 break-normal pointer-events-auto" @click="$emit('clicked')">
22+
<button
23+
:class="['pointer-events-auto px-4 py-1 break-normal sm:mx-auto sm:w-4/5 sm:px-0', lyric.time !== undefined ? 'cursor-pointer' : 'cursor-default']"
24+
@click="$emit('clicked')"
25+
>
2726
{{ lyric?.text || '-' }}
2827
</button>
2928
</div>

resources/js/components/video/VideoLyrics.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ defineExpose({ scrollToCurrent });
253253
:lyric="{ text: `${isLoadingLyrics ? 'Generating' : 'Generate with Magic'}...` }"
254254
:is-active="false"
255255
:index="0"
256-
:class="{ 'opacity-60!': isLoadingLyrics }"
256+
:class="[{ 'opacity-60!': isLoadingLyrics }, '*:cursor-pointer!']"
257257
@clicked="handleGenerateLyrics"
258258
/>
259259
<div class="shrink-0" style="height: 45%"></div>

0 commit comments

Comments
 (0)