Handle unset synced lyrics height
This commit is contained in:
1 parent
95f6199cea
commit
7d42c6edb1
1 file changed
+1
-1
@@ -184,7 +184,7 @@ const finalTransform = computed(() => {
|
|||||||
v-if="song && song.lyrics && song.lyrics.synced && hasParsedLyrics"
|
v-if="song && song.lyrics && song.lyrics.synced && hasParsedLyrics"
|
||||||
class="synced-lyrics-container"
|
class="synced-lyrics-container"
|
||||||
:style="{
|
:style="{
|
||||||
height: `${syncedHeight + topFadeExtension}px`,
|
height: `${(syncedHeight ?? 0) + topFadeExtension}px`,
|
||||||
marginTop: `${top - topFadeExtension}px`,
|
marginTop: `${top - topFadeExtension}px`,
|
||||||
}"
|
}"
|
||||||
@wheel.prevent="onWheel"
|
@wheel.prevent="onWheel"
|
||||||
|
|||||||
Reference in new issue
Block a user