mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	remove margins
This commit is contained in:
		
							parent
							
								
									16ceae18a2
								
							
						
					
					
						commit
						88639e9f6f
					
				| @ -17,7 +17,7 @@ function gerArrayWithEntries (num) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| const Parameter = ({ set, input = {}, index }) => ( | const Parameter = ({ set, input = {}, index }) => ( | ||||||
|     <div  style={{ background: '#f1f1f1', margin: '20px 0', padding: '16px 20px' }}> |     <div  style={{ background: '#f1f1f1', padding: '16px 20px', marginBottom: '20px' }}> | ||||||
|         <Textfield |         <Textfield | ||||||
|             style={{ width: '50%' }} |             style={{ width: '50%' }} | ||||||
|             floatingLabel |             floatingLabel | ||||||
| @ -65,7 +65,7 @@ const Parameter = ({ set, input = {}, index }) => ( | |||||||
| const EditHeader = () => ( | const EditHeader = () => ( | ||||||
|     <div> |     <div> | ||||||
|         <h4>Edit strategy</h4> |         <h4>Edit strategy</h4> | ||||||
|         <p style={{ background: '#ffb7b7', padding: '5px'  }}> |         <p style={{ background: '#ffb7b7', padding: '16px 20px'  }}> | ||||||
|             Be carefull! Changing a strategy definition might also require changes to the |             Be carefull! Changing a strategy definition might also require changes to the | ||||||
|             implementation in the clients. |             implementation in the clients. | ||||||
|         </p> |         </p> | ||||||
| @ -132,7 +132,6 @@ class AddStrategy extends Component { | |||||||
|         return ( |         return ( | ||||||
|              <form onSubmit={onSubmit(input)}> |              <form onSubmit={onSubmit(input)}> | ||||||
|                 {editmode ? <EditHeader /> : <CreateHeader />} |                 {editmode ? <EditHeader /> : <CreateHeader />} | ||||||
|                 <section style={{ margin: '16px 20px' }}> |  | ||||||
|                 <Textfield label="Strategy name" |                 <Textfield label="Strategy name" | ||||||
|                     floatingLabel |                     floatingLabel | ||||||
|                     name="name" |                     name="name" | ||||||
| @ -152,15 +151,14 @@ class AddStrategy extends Component { | |||||||
|                     onChange={({ target }) => setValue('description', target.value)} |                     onChange={({ target }) => setValue('description', target.value)} | ||||||
|                     value={input.description} |                     value={input.description} | ||||||
|                     /> |                     /> | ||||||
|                 </section> |  | ||||||
| 
 | 
 | ||||||
|                 <section style={{ margin: '0 20px' }}> | 
 | ||||||
|                 <Parameters input={input.parameters} count={input._params} updateInList={updateInList} /> |                 <Parameters input={input.parameters} count={input._params} updateInList={updateInList} /> | ||||||
|                 <IconButton raised name="add" title="Add parameter" onClick={(e) => { |                 <IconButton raised name="add" title="Add parameter" onClick={(e) => { | ||||||
|                     e.preventDefault(); |                     e.preventDefault(); | ||||||
|                     incValue('_params'); |                     incValue('_params'); | ||||||
|                 }}/>  Add parameter |                 }}/>  Add parameter | ||||||
|                 </section> | 
 | ||||||
| 
 | 
 | ||||||
|                 <br /> |                 <br /> | ||||||
|                 <hr /> |                 <hr /> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user