mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 21:32:18 +00:00
trim duration on playbar
This commit is contained in:
1 parent
e427aed7cf
commit
b2b576ba10
2 files changed
+6
-2
No files matched your search
@@ -85,7 +85,12 @@ export default function VideoQuickTrim({
|
||||
</div>
|
||||
</div>
|
||||
<div className="playbar">
|
||||
<div className="trimzone" />
|
||||
<div className="trimzone" style={{width: (
|
||||
videoRef.current ?
|
||||
(trimDuration / videoRef.current.duration * 100)
|
||||
: 0
|
||||
) + "%"}}
|
||||
/>
|
||||
<div className="playcursor" style={{left: currentTimePortion+"%"}}/>
|
||||
</div>
|
||||
<div className="d-flex w-100 justify-content-center">
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
.trimzone{
|
||||
position: absolute;
|
||||
top:0;
|
||||
width: 30px;
|
||||
height: 2rem;
|
||||
background-color: #e66462;
|
||||
opacity: 0.8;
|
||||
|
||||
Reference in new issue
Block a user