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) }" >