Skip to content

Commit

Permalink
move out videopopuptoggler
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Feb 3, 2024
1 parent a24e73e commit caa8179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/components/MediaWidget/MediaWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import PlaylistComponent from "./PlaylistComponent";
import VideoJSComponent from "./VideoJSComponent";
import { Song } from "./types";
import { log } from "../../logging";
import VideoPopupToggler from "./VideoPopupToggler";

export default function MediaWidget({}: {}) {
const { recipientId, conf, widgetId } = useLoaderData();
Expand Down Expand Up @@ -71,6 +72,10 @@ export default function MediaWidget({}: {}) {
/>
<div className="video-container" data-vjs-player>
<RequestsDisabledWarning />
<div className="player-header">
<div className="song-title-container">{song?.title ?? ""}</div>
<VideoPopupToggler/>
</div>
{song && playlistController.current && <VideoJSComponent playlistController={playlistController.current} song={song}/>}
<div className="playlist-controls">
<Menu>
Expand Down
6 changes: 0 additions & 6 deletions src/components/MediaWidget/VideoJSComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ export default function VideoJSComponent({

return (
<>
<>
<div className="player-header">
<div className="song-title-container">{song?.title}</div>
<VideoPopupToggler/>
</div>
</>
<div
className="video-player"
data-vjs-player
Expand Down

0 comments on commit caa8179

Please sign in to comment.