mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Removing Play Button With No File (#5141)
* Remove Play Button With No File * Hide controls when there is no file --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
parent
a023a86ca6
commit
b3d6a8eedd
2 changed files with 8 additions and 1 deletions
|
|
@ -822,7 +822,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cx("VideoPlayer", { portrait: isPortrait })}
|
className={cx("VideoPlayer", { portrait: isPortrait, "no-file": !file })}
|
||||||
onKeyDownCapture={onKeyDown}
|
onKeyDownCapture={onKeyDown}
|
||||||
>
|
>
|
||||||
<div className="video-wrapper" ref={videoRef} />
|
<div className="video-wrapper" ref={videoRef} />
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,13 @@ $sceneTabWidth: 450px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.VideoPlayer.no-file .video-js {
|
||||||
|
.vjs-big-play-button,
|
||||||
|
.vjs-control-bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.video-js {
|
.video-js {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue