Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 3, 2024
1 parent 4e3e6dc commit 3b09c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugin/Bookmark/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function adjustMarkerWidths() {
}

const width = nextLeft - currentLeft;
marker.style.width = `calc(${width}% - 2px)`;
marker.style.width = `calc(${width}% - 1px)`;
marker.classList.add('marker-width-changed');
});
}
Expand Down
10 changes: 3 additions & 7 deletions plugin/Bookmark/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
.vjs-marker {
.vjs-marker.marker-width-changed{
position: absolute;
height: 20px;
top: 0;
background-color: #FFFF0099;
border-radius: 0;
}

.marker-width-changed {
border: 2px solid red;
background-color: #33333399 !important;
border-radius: 0 !important;
}

0 comments on commit 3b09c5e

Please sign in to comment.