1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00

fix font size

This commit is contained in:
Mikael Finstad 2022-01-14 15:57:21 +07:00
parent 6b5857b902
commit f72b2e6e59
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -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 }}>