Skip to content

Commit

Permalink
Make timer smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Dec 8, 2016
1 parent da2a88c commit b474429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superset/assets/javascripts/components/Timer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class Timer extends React.PureComponent {
let timerSpan = null;
if (this.props) {
timerSpan = (
<span className={'inlineBlock m-r-5 label label-' + this.props.state}>
<span
className={`inlineBlock m-r-5 label label-${this.props.state}`}
style={this.props.style}
>
{this.state.clockStr}
</span>
);
Expand All @@ -55,12 +58,14 @@ Timer.propTypes = {
endTime: React.PropTypes.number,
isRunning: React.PropTypes.bool.isRequired,
state: React.PropTypes.string,
style: React.PropTypes.object,
};

Timer.defaultProps = {
startTime: null,
endTime: null,
state: 'success',
style: null,
};

export default Timer;
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class ChartContainer extends React.Component {
endTime={this.props.chartUpdateEndTime}
isRunning={this.props.chartStatus === 'loading'}
state={CHART_STATE_MAP[this.props.chartStatus]}
style={{ 'font-size': '10px' }}
/>
<ExploreActionButtons
slice={this.state.mockSlice}
Expand Down

0 comments on commit b474429

Please sign in to comment.