diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 2333cbce93947..aa3eacbc072d3 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -657,7 +657,7 @@ export default Vue.extend({ markerDiv.title = chapter.title markerDiv.className = 'chapterMarker' - markerDiv.style.marginLeft = (chapter.startSeconds / this.lengthSeconds) * 100 - 0.5 + '%' + markerDiv.style.marginLeft = `calc(${(chapter.startSeconds / this.lengthSeconds) * 100}% - 1px)` this.player.el().querySelector('.vjs-progress-holder').appendChild(markerDiv) },