Fixed: Styling issues in Quality Profile and Release Profiles

pull/770/head
Qstick 5 years ago
parent 10fd15b50a
commit e5ba8af3ce

@ -8,7 +8,16 @@
} }
} }
.inputWrapper {
flex: 1 0 0;
}
.buttonWrapper {
flex: 0 0 22px;
}
.keyInput, .keyInput,
.valueInput { .valueInput {
width: 100%;
border: none; border: none;
} }

@ -63,34 +63,41 @@ class KeyValueListInputItem extends Component {
return ( return (
<div className={styles.itemContainer}> <div className={styles.itemContainer}>
<TextInput <div className={styles.inputWrapper}>
className={styles.keyInput} <TextInput
name="key" className={styles.keyInput}
value={keyValue} name="key"
placeholder={keyPlaceholder} value={keyValue}
onChange={this.onKeyChange} placeholder={keyPlaceholder}
onFocus={this.onFocus} onChange={this.onKeyChange}
onBlur={this.onBlur} onFocus={this.onFocus}
/> onBlur={this.onBlur}
/>
<TextInput </div>
className={styles.valueInput}
name="value" <div className={styles.inputWrapper}>
value={value} <TextInput
placeholder={valuePlaceholder} className={styles.valueInput}
onChange={this.onValueChange} name="value"
onFocus={this.onFocus} value={value}
onBlur={this.onBlur} placeholder={valuePlaceholder}
/> onChange={this.onValueChange}
onFocus={this.onFocus}
{ onBlur={this.onBlur}
!isNew && />
<IconButton </div>
name={icons.REMOVE}
tabIndex={-1} <div className={styles.buttonWrapper}>
onPress={this.onRemovePress} {
/> isNew ?
} null :
<IconButton
name={icons.REMOVE}
tabIndex={-1}
onPress={this.onRemovePress}
/>
}
</div>
</div> </div>
); );
} }

@ -48,6 +48,7 @@
composes: buton from '~Components/Link/IconButton.css'; composes: buton from '~Components/Link/IconButton.css';
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
margin-right: 5px; margin-right: 5px;

@ -74,6 +74,7 @@
composes: buton from '~Components/Link/IconButton.css'; composes: buton from '~Components/Link/IconButton.css';
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
margin-right: 5px; margin-right: 5px;

Loading…
Cancel
Save