Skip to content

The swiss army knife of lossless video/audio editing

fix font size

Mikael Finstadf72b2e6e599f
diff --git a/src/SegmentList.jsx b/src/SegmentList.jsx
index 33bfca99..993d9ce1 100644
--- a/src/SegmentList.jsx
+++ b/src/SegmentList.jsx
@@ -99,7 +99,7 @@ const Segment = memo(({ seg, index, currentSegIndex, formatTimecode, getFrameCou
>
<div style={{ color: 'white', marginBottom: 3, display: 'flex', alignItems: 'center', height: 16 }}>
{renderNumber()}
- <span style={{ fontSize: 310 / timeStr.length, whiteSpace: 'nowrap' }}>{timeStr}</span>
+ <span style={{ fontSize: Math.min(310 / timeStr.length, 14), whiteSpace: 'nowrap' }}>{timeStr}</span>
</div>
<div style={{ fontSize: 12, color: 'white' }}>{seg.name}</div>
<div style={{ fontSize: 13 }}>