diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index ca57f195..ab8b9dd5 100644 --- a/src/components/ChaptersBar.vue +++ b/src/components/ChaptersBar.vue @@ -10,7 +10,7 @@ @click="$emit('seek', chapter.start)" class="chapter-vertical" :class=" - playerPosition >= chapter.start && playerPosition < chapters[index + 1].start + isCurrentChapter(chapters, index, playerPosition) ? 'chapter-vertical bg-red-500/50' : 'chapter-vertical' " @@ -29,13 +29,9 @@
@@ -70,6 +66,19 @@ } + +