Skip to content

Commit

Permalink
Removing Play Button With No File
Browse files Browse the repository at this point in the history
Based on stashapp#3787.
  • Loading branch information
Gykes committed Aug 19, 2024
1 parent a94bf29 commit 0936a7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({

return (
<div
className={cx("VideoPlayer", { portrait: isPortrait })}
className={cx("VideoPlayer", { portrait: isPortrait, "no-file": !file })}
onKeyDownCapture={onKeyDown}
>
<div className="video-wrapper" ref={videoRef} />
Expand Down
4 changes: 4 additions & 0 deletions ui/v2.5/src/components/ScenePlayer/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ $sceneTabWidth: 450px;
}
}

.VideoPlayer.no-file .vjs-big-play-button {
display: none;
}

.video-js {
height: 100%;
position: absolute;
Expand Down

0 comments on commit 0936a7a

Please sign in to comment.