Fix videojs overlay css
Related:
aaffd3b089
"CodeSplit: Load 3rd-party css before ours."
This commit is contained in:
parent
b5b0459aff
commit
2e0f8c6120
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@ import * as ICONS from 'constants/icons';
|
|||
import ReactDOMServer from 'react-dom/server';
|
||||
|
||||
import './plugins/videojs-overlay/plugin';
|
||||
import './plugins/videojs-overlay/plugin.scss';
|
||||
// import './plugins/videojs-overlay/plugin.scss'; --> 'scss/third-party.scss'
|
||||
|
||||
// ****************************************************************************
|
||||
// ****************************************************************************
|
||||
|
@ -45,7 +45,7 @@ export const OVERLAY_DATA = {
|
|||
*/
|
||||
function showOneOffOverlay(player, className, overlayJsx, align) {
|
||||
// Delete existing:
|
||||
OVERLAY_DATA.overlays = OVERLAY_DATA.overlays.filter(x => x.name !== OVERLAY_NAME_ONE_OFF);
|
||||
OVERLAY_DATA.overlays = OVERLAY_DATA.overlays.filter((x) => x.name !== OVERLAY_NAME_ONE_OFF);
|
||||
// Create new one:
|
||||
OVERLAY_DATA.overlays.push({
|
||||
name: OVERLAY_NAME_ONE_OFF,
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
@import '~@reach/combobox/styles.css';
|
||||
@import '~@reach/tooltip/styles.css';
|
||||
@import '~video.js/dist/alt/video-js-cdn.min.css';
|
||||
@import 'component/viewers/videoViewer/internal/plugins/videojs-overlay/plugin.scss';
|
||||
|
|
Loading…
Reference in a new issue