some lyrics fixes: disable click on unsynced & fix waiting dot
This commit is contained in:
parent
71d75f4fae
commit
a88d7f93fb
2 changed files with 7 additions and 4 deletions
|
@ -1047,6 +1047,9 @@ const app = new Vue({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (app.currentLyricsLine == 0) {
|
||||||
|
if (!document.querySelector(`.lyric-line[line-index="0"]`).classList.contains("active"))
|
||||||
|
document.querySelector(`.lyric-line[line-index="0"]`).classList.add("active");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -430,9 +430,9 @@
|
||||||
<!-- Lyrics View -->
|
<!-- Lyrics View -->
|
||||||
<script type="text/x-template" id="lyrics-view">
|
<script type="text/x-template" id="lyrics-view">
|
||||||
<div class="md-body lyric-body">
|
<div class="md-body lyric-body">
|
||||||
<template v-if="lyrics">
|
<template v-if="lyrics && lyrics != []">
|
||||||
<template v-for="(lyric, index) in lyrics" v-if="lyric.line != 'lrcInstrumental'">
|
<template v-for="(lyric, index) in lyrics" v-if="lyric.line != 'lrcInstrumental'">
|
||||||
<h3 class="lyric-line" @click="app.seekTo(lyric.startTime, false)"
|
<h3 class="lyric-line" @click="if(lyric.startTime != 9999999) app.seekTo(lyric.startTime, false)"
|
||||||
v-bind:line-index="index.toString()">
|
v-bind:line-index="index.toString()">
|
||||||
{{ lyric.line }}
|
{{ lyric.line }}
|
||||||
<div class="lyrics-translation" v-if="lyric.translation && lyric.translation != ''">
|
<div class="lyrics-translation" v-if="lyric.translation && lyric.translation != ''">
|
||||||
|
@ -441,7 +441,7 @@
|
||||||
</h3>
|
</h3>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<h3 class="lyric-line" @click="app.seekTo(lyric.startTime, false)" :start="lyric.startTime"
|
<h3 class="lyric-line" @click="if(lyric.startTime != 9999999) app.seekTo(lyric.startTime, false)" :start="lyric.startTime"
|
||||||
:end="lyric.endTime" v-bind:line-index="index.toString()">
|
:end="lyric.endTime" v-bind:line-index="index.toString()">
|
||||||
<div class="lyricWaiting">
|
<div class="lyricWaiting">
|
||||||
<div class='WaitingDot1'></div>
|
<div class='WaitingDot1'></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue