1
0
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:
Mikael Finstad 2020-02-12 00:48:40 +08:00
parent 40646d2feb
commit 5edaafa828

View File

@ -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 && (