fix font size

pull/932/head
Mikael Finstad 4 years ago
parent 6b5857b902
commit f72b2e6e59
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -99,7 +99,7 @@ const Segment = memo(({ seg, index, currentSegIndex, formatTimecode, getFrameCou
> >
<div style={{ color: 'white', marginBottom: 3, display: 'flex', alignItems: 'center', height: 16 }}> <div style={{ color: 'white', marginBottom: 3, display: 'flex', alignItems: 'center', height: 16 }}>
{renderNumber()} {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>
<div style={{ fontSize: 12, color: 'white' }}>{seg.name}</div> <div style={{ fontSize: 12, color: 'white' }}>{seg.name}</div>
<div style={{ fontSize: 13 }}> <div style={{ fontSize: 13 }}>

Loading…
Cancel
Save