Skip to content

Commit 871ce20

Browse files
committed
fix: add labels on leftRightPercentArray subtitle
1 parent 5e58095 commit 871ce20

File tree

1 file changed

+4
-2
lines changed
  • src/components/widgets/VideoExplorer/Frame

1 file changed

+4
-2
lines changed

src/components/widgets/VideoExplorer/Frame/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ class Frame extends React.Component {
2828
const separator = subtitle.separator || " - ";
2929

3030
switch(subtitle.format){
31-
case 'percentArray':
31+
case 'leftRightPercentArray':
3232
value = value
33-
.map(v => `${Math.abs(parseInt(v * 100))}%`)
33+
.map(v => {
34+
return `${v > 0 ? 'right' : 'left'}: ${Math.abs(parseInt(v * 100))}/100`;
35+
})
3436
.join(separator)
3537
break;
3638
default:

0 commit comments

Comments
 (0)