diff --git a/src/SegmentList.jsx b/src/SegmentList.jsx index 0c71f95d..40c676bd 100644 --- a/src/SegmentList.jsx +++ b/src/SegmentList.jsx @@ -14,6 +14,7 @@ import useUserSettings from './hooks/useUserSettings'; import { saveColor, controlsBackground, primaryTextColor, darkModeTransition } from './colors'; import { useSegColors } from './contexts'; import { mySpring } from './animations'; +import { getSegmentTags } from './segments'; const buttonBaseStyle = { margin: '0 3px', borderRadius: 3, color: 'white', cursor: 'pointer', @@ -108,6 +109,8 @@ const Segment = memo(({ darkMode, seg, index, currentSegIndex, formatTimecode, g const cursor = invertCutSegments ? undefined : 'grab'; + const tags = useMemo(() => getSegmentTags(seg), [seg]); + return ( {timeStr} -
{seg.name}
+
+ {seg.name && {seg.name}} + {Object.entries(tags).map(([name, value]) => ( + {name}:{value} + ))} +
+
{t('Duration')} {formatTimecode({ seconds: duration, shorten: true })}