Fix down-scale behavior

This commit is contained in:
Thomas Nordquist
2019-04-15 14:15:06 +02:00
parent 47d1e74852
commit 7f29dadc42
2 changed files with 27 additions and 8 deletions

View File

@@ -15,6 +15,9 @@ const styles: StyleRulesCallback = theme => ({
color: theme.palette.primary.contrastText,
verticalAlign: 'middle' as 'middle',
},
bufferStats: {
minWidth: '8em',
},
})
interface Props {
@@ -39,7 +42,7 @@ class PauseButton extends React.Component<Props, {changes: number}> {
}
return (
<span>
<span className={this.props.classes.bufferStats}>
{this.state.changes} changes<br />
buffer at {Math.round(this.props.tree.unmergedChanges().fillState() * 10000) / 100}%
</span>