Skip to content

Commit 2cce309

Browse files
author
stevevista
committed
simplify layout
1 parent 88b9ec9 commit 2cce309

File tree

1 file changed

+8
-2
lines changed
  • src/renderer/main/components

1 file changed

+8
-2
lines changed

src/renderer/main/components/qspr.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -216,21 +216,27 @@ class QSPR extends React.Component {
216216
<Col span={3}/>
217217
<Col span={21}>
218218
<Progress percent={this.props.progressPercent[i]} status={this.props.progressStatus[i]} strokeWidth={20}/>
219+
<div style={{top: 0, position: 'absolute', color:'#000', marginLeft: 20}}>
220+
{this.props.runners[i].caseRuns}/{this.props.runners[i].caseCount},
221+
{this.props.runners[i].statusText}
222+
</div>
219223
</Col>
220224
</Row>
221225
)
222226
}
223227
return (
224228
<div>
225-
<Progress type="circle" percent={this.props.progressPercent[0]} status={this.props.progressStatus[0]} format={percent => `${this.props.runners[0].caseRuns}/${this.props.runners[0].caseCount}`} />
226-
{this.props.runners[0].statusText}
227229
<Row style={{marginTop: 20}}>
228230
<Col span={3}>
229231
<Button disabled={this.props.isExecuting} type="primary" shape="circle" icon="plus" size="small" style={{marginLeft: 5}} onClick={() => store.dispatch({type: 'qspr/increaseRunCount'})}/>
230232
<Button disabled={this.props.isExecuting} type="primary" shape="circle" icon="minus" size="small" style={{marginLeft: 5}} onClick={() => store.dispatch({type: 'qspr/decreaseRunCount'})}/>
231233
</Col>
232234
<Col span={21}>
233235
<Progress percent={this.props.progressPercent[0]} status={this.props.progressStatus[0]} strokeWidth={20}/>
236+
<div style={{top: 0, position: 'absolute', color:'#000', marginLeft: 20}}>
237+
{this.props.runners[0].caseRuns}/{this.props.runners[0].caseCount},
238+
{this.props.runners[0].statusText}
239+
</div>
234240
</Col>
235241
</Row>
236242
{mutiRunns}

0 commit comments

Comments
 (0)