v0.1/styling-and-bug-fixes #38

Merged
lamacchinadesiderante merged 5 commits from v0.1/styling-and-bug-fixes into main 2024-04-25 21:14:47 +00:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit 59dbdc1bdc - Show all commits

View File

@ -0,0 +1,9 @@
.container {
li {
color: white !important
}
li:not(.vjs-selected) span {
color: var(--primary) !important;
}
}

View File

@ -6,6 +6,8 @@ import videojs from 'video.js';
import 'video.js/dist/video-js.css'; import 'video.js/dist/video-js.css';
import style from './VideoJS.module.scss'
export const VideoJS = (props: { options: any; onReady: any; }) => { export const VideoJS = (props: { options: any; onReady: any; }) => {
const videoRef = React.useRef(null); const videoRef = React.useRef(null);
const playerRef = React.useRef(null); const playerRef = React.useRef(null);
@ -56,7 +58,7 @@ export const VideoJS = (props: { options: any; onReady: any; }) => {
}, [playerRef]); }, [playerRef]);
return ( return (
<div data-vjs-player> <div className={style.container} data-vjs-player>
<div ref={videoRef} /> <div ref={videoRef} />
</div> </div>
); );