diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index d777c74e..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=" - isCurrentChapter(chapters, index, playerPosition) - ? 'chapter-vertical bg-red-500/50' - : 'chapter-vertical' - " + :class="{ 'bg-red-500/50': isCurrentChapter(index) }" >
@@ -31,7 +27,8 @@ :key="chapter.start" v-for="(chapter, index) in chapters" @click="$emit('seek', chapter.start)" - :class="isCurrentChapter(chapters, index, playerPosition) ? 'chapter bg-red-500/50' : 'chapter'" + class="chapter" + :class="{ 'bg-red-500/50': isCurrentChapter(index) }" >
@@ -66,24 +63,10 @@ } - -