Skip to content

Commit

Permalink
fix #1093. Improved rule manager buttons (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored Oct 6, 2016
1 parent 2e2d2f7 commit 34c5602
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions web/client/components/manager/rulesmanager/RulesManager.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
}

.rules-controls {
text-align: right;
width: auto;
margin-bottom: 15px;
}

.rules-controls .btn {
border-left: 1px solid #5C9FB4;
}
.rules-pagination {
text-align: right;
margin-top: -22px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

const React = require('react');
const {Button, Glyphicon, Modal} = require('react-bootstrap');
const {ButtonGroup, Button, Glyphicon, Modal} = require('react-bootstrap');

const Message = require('../../I18N/Message');

Expand All @@ -23,7 +23,6 @@ const RulesTableControls = React.createClass({
},
getDefaultProps() {
return {
bsSize: "small",
moveRulesToPage: () => {},
updateActiveRule: () => {},
deleteRules: () => {},
Expand Down Expand Up @@ -51,7 +50,7 @@ const RulesTableControls = React.createClass({
const firstPage = this.props.rulesPage === 1 || !this.props.rulesPage;
const lastPage = this.props.rulesPage === numberOfPages || !this.props.rulesPage;
return (
<div className="rules-controls">
<ButtonGroup className="rules-controls">
<Button bsSize={bsSize} bsStyle="primary" onClick={this.getAddRuleHandler()}>
<Glyphicon glyph="plus"/>
</Button>
Expand Down Expand Up @@ -110,7 +109,7 @@ const RulesTableControls = React.createClass({
</Button>
</Modal.Footer>
</Modal>
</div>
</ButtonGroup>
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/manager/style/manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
}
.Manager-Container .Manager-Tools-Nav {
order: -1;
flex: 0 0 15em;
max-width: 20%;
}

0 comments on commit 34c5602

Please sign in to comment.