mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
show segment time #224
This commit is contained in:
parent
40646d2feb
commit
5edaafa828
@ -1,6 +1,9 @@
|
||||
const React = require('react');
|
||||
const PropTypes = require('prop-types');
|
||||
|
||||
const { formatDuration } = require('./util');
|
||||
|
||||
|
||||
const TimelineSeg = ({
|
||||
isCutRangeValid, duration: durationRaw, cutStartTime, cutEndTime, apparentCutStart,
|
||||
apparentCutEnd, isActive, segNum, onSegClick, color,
|
||||
@ -52,6 +55,7 @@ const TimelineSeg = ({
|
||||
role="button"
|
||||
tabIndex="0"
|
||||
onClick={onThisSegClick}
|
||||
title={`${formatDuration(cutEndTime - cutStartTime)}`}
|
||||
/>
|
||||
)}
|
||||
{cutEndTime !== undefined && (
|
||||
|
Loading…
Reference in New Issue
Block a user