Skip to content

Commit

Permalink
fix: subtitle can be selected and selection color is adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx committed May 15, 2021
1 parent 12ebe8f commit 8641f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ div.local-media {
margin: auto;
}

.plyr__caption::selection{
background-color: gray;
}

div.external-video > iframe.external-video,
div.external-video > div.thumbnail,
.plyr, .plyr__video-wrapper,
Expand Down
2 changes: 2 additions & 0 deletions src/modules/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ export async function handleMedia(
...defaultPlyrOption,
autoplay: is("autoplay"),
});
if (info)
container.querySelector("div.plyr__poster")?.addClass("visuallyhidden");
setRatio(container, player);
setHashOpt(player);
setPlayerTF(player);
Expand Down

0 comments on commit 8641f84

Please sign in to comment.