diff --git a/src/components/ChaptersBar.vue b/src/components/ChaptersBar.vue index 1b0f74c2..6630196c 100644 --- a/src/components/ChaptersBar.vue +++ b/src/components/ChaptersBar.vue @@ -9,6 +9,11 @@ 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' + " >
@@ -22,7 +27,16 @@
-
+
@@ -55,17 +69,24 @@ @apply truncate overflow-hidden inline-block w-10em; } - -