diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index ca57f195..30feb56a 100644 --- a/src/components/ChaptersBar.vue +++ b/src/components/ChaptersBar.vue @@ -9,11 +9,7 @@ v-for="(chapter, index) in chapters" @click="$emit('seek', chapter.start)" class="chapter-vertical" - :class=" - playerPosition >= chapter.start && playerPosition < chapters[index + 1].start - ? 'chapter-vertical bg-red-500/50' - : 'chapter-vertical' - " + :class="{ 'bg-red-500/50': isCurrentChapter(index) }" >
@@ -31,11 +27,8 @@ :key="chapter.start" v-for="(chapter, index) in chapters" @click="$emit('seek', chapter.start)" - :class=" - playerPosition >= chapter.start && playerPosition < chapters[index + 1].start - ? 'chapter bg-red-500/50' - : 'chapter' - " + class="chapter" + :class="{ 'bg-red-500/50': isCurrentChapter(index) }" >
@@ -73,7 +66,7 @@