Fix videojs overlay css

Related:
aaffd3b089 "CodeSplit: Load 3rd-party css before ours."
This commit is contained in:
infinite-persistence 2021-07-01 15:22:49 +08:00
parent b5b0459aff
commit 2e0f8c6120
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 3 additions and 2 deletions

View file

@ -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,

View file

@ -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';