Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from muhammad-saad-maxiv/frontend-changes
Browse files Browse the repository at this point in the history
scroll changed to auto, buttons overlapping issue fixed
  • Loading branch information
muhammad-saad-maxiv authored Feb 23, 2021
2 parents cabcd58 + 47de8cd commit 7753cb1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion js/attributes.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
list-style: none;
padding-left: 10px;
max-height: 120px;
overflow: scroll;
overflow: auto;
}

.attributes-radio-label {
Expand Down
25 changes: 14 additions & 11 deletions js/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,22 @@ class PlottedAttributes extends React.Component {
<FormGroup>

<Panel footer={
<div>
<Button style={{ width: "49%" }} bsStyle="danger" onClick={this.onRemove.bind(this)}
disabled={this.state.selected.length == 0}
title="Remove the currently selected attribute(s) from the plot">
Remove Selected
<Row>
<Col xs={6} lg={6}>
<Button style={{ width: "100%" }} bsStyle="danger" onClick={this.onRemove.bind(this)}
disabled={this.state.selected.length == 0}
title="Remove the currently selected attribute(s) from the plot">
Remove Selected
</Button>
{' '}
<Button style={{ width: "49%" }} bsStyle="danger" onClick={this.onRemoveAll.bind(this)}
disabled={this.props.attributes.length == 0}
title="Remove all attribute(s) from the plot">
Remove All
</Col>
<Col xs={6} lg={6}>
<Button style={{ width: "100%" }} bsStyle="danger" onClick={this.onRemoveAll.bind(this)}
disabled={this.props.attributes.length == 0}
title="Remove all attribute(s) from the plot">
Remove All
</Button>
</div>
</Col>
</Row>
}>

<div>
Expand Down
Loading

0 comments on commit 7753cb1

Please sign in to comment.