Fix timeline label vertical displacement on some Chromes (#2793)

Fixes #2789
This commit is contained in:
Roland Schilter
2017-08-07 11:05:53 +02:00
committed by GitHub
parent 7a23afde2c
commit 13188845a5

View File

@@ -289,7 +289,7 @@ class TimeTravelTimeline extends React.Component {
<g transform={`translate(${position}, 0)`} key={timestamp.format()}>
{!isBehind && <line y2="75" stroke="#ddd" strokeWidth="1" />}
{!disabled && <title>Jump to {timestamp.utc().format()}</title>}
<foreignObject width="100" height="20">
<foreignObject width="100" height="20" style={{ lineHeight: '20px' }}>
<a className="timestamp-label" disabled={disabled} onClick={!disabled && handleClick}>
{timestamp.utc().format(periodFormat)}
</a>