Skip to content

Commit

Permalink
Adjust some style attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
firsti committed Jul 12, 2018
1 parent 87f74c5 commit 0e08462
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const renderForm = (props, inputs) => {
return (
<div>
<form
className={props.class}
id={id}
onSubmit={event => {
event.preventDefault();
Expand All @@ -107,7 +108,7 @@ const renderForm = (props, inputs) => {
width: '10%',
color: '#008714',
padding: '8px',
margin: '5px 25px 0 0'
margin: '0px 25px 0 0'
}}
onClick={event => {
event.preventDefault()
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class Locks extends Component {
if(form[policy] && form[policy][op]) {
return (
<Form
class={'policy_lock_form'}
id={this.props.params.id + '_' + this.props.params.type + '_' + policy + '_' + op}
selectedForms={form[policy][op]}
deleteFormName={forms => {
Expand Down Expand Up @@ -197,7 +198,7 @@ class Locks extends Component {
return (
<GenericListItem
key={`addLockList_${policy}_${type},`}
style={{bar: {height: 'auto', margin: '0 0 10px 0'}, middleEl: {width: '150px', padding: '20px'}, rightEl: {padding: '20px'}, leftEl: {padding: '20px'}}}
style={{bar: {height: 'auto', margin: '0 0 10px 0'}, middleEl: {display: 'inline-block', width: '150px', padding: '0px'}, rightEl: {padding: '20px'}, leftEl: {display: 'inline-block', padding: '40px 20px 20px 20px'}}}
leftEl={`New ${type} lock`}
rightEl={this.renderForm(policy, type)}
middleEl={
Expand Down
4 changes: 4 additions & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,8 @@ i.glyphicon { display: none; }

.__react_component_tooltip {
max-width: 300px;
}

.policy_lock_form {
display: inline-block;
}

0 comments on commit 0e08462

Please sign in to comment.