Always show chart button in history

This commit is contained in:
Thomas Nordquist
2019-07-17 14:14:04 +02:00
parent 9a8474e3d8
commit 8959bbdee7

View File

@@ -77,7 +77,8 @@ class HistoryDrawer extends React.Component<Props, State> {
return ( return (
<div className={this.props.classes.main}> <div className={this.props.classes.main}>
<div style={{ backgroundColor: emphasize(this.props.theme.palette.background.default, 0.07) }}> <div style={{ backgroundColor: emphasize(this.props.theme.palette.background.default, 0.07) }}>
<Typography component={'span'} onClick={this.toggle} style={{ cursor: 'pointer' }}> <Typography component={'span'} onClick={this.toggle} style={{ cursor: 'pointer', display: 'flex' }}>
<span style={{ flexGrow: 1 }}>
<Badge <Badge
classes={{ badge: this.props.classes.badge }} classes={{ badge: this.props.classes.badge }}
invisible={!visible} invisible={!visible}
@@ -86,7 +87,8 @@ class HistoryDrawer extends React.Component<Props, State> {
> >
{this.state.collapsed ? '▶ History' : '▼ History'} {this.state.collapsed ? '▶ History' : '▼ History'}
</Badge> </Badge>
<div style={{ float: 'right' }}>{this.state.collapsed ? this.props.contentTypeIndicator : null}</div> </span>
<span>{this.props.contentTypeIndicator}</span>
</Typography> </Typography>
</div> </div>
<div style={{ maxHeight: '230px', overflowY: 'scroll' }}> <div style={{ maxHeight: '230px', overflowY: 'scroll' }}>