Fix some styling issues in Quality Profile and Release Profiles

pull/2/head
Mark McDowall 4 years ago committed by Qstick
parent 70a2da0f74
commit 1209e3cefb

@ -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,6 +63,7 @@ class KeyValueListInputItem extends Component {
return ( return (
<div className={styles.itemContainer}> <div className={styles.itemContainer}>
<div className={styles.inputWrapper}>
<TextInput <TextInput
className={styles.keyInput} className={styles.keyInput}
name="key" name="key"
@ -72,7 +73,9 @@ class KeyValueListInputItem extends Component {
onFocus={this.onFocus} onFocus={this.onFocus}
onBlur={this.onBlur} onBlur={this.onBlur}
/> />
</div>
<div className={styles.inputWrapper}>
<TextInput <TextInput
className={styles.valueInput} className={styles.valueInput}
name="value" name="value"
@ -82,9 +85,12 @@ class KeyValueListInputItem extends Component {
onFocus={this.onFocus} onFocus={this.onFocus}
onBlur={this.onBlur} onBlur={this.onBlur}
/> />
</div>
<div className={styles.buttonWrapper}>
{ {
!isNew && isNew ?
null :
<IconButton <IconButton
name={icons.REMOVE} name={icons.REMOVE}
tabIndex={-1} tabIndex={-1}
@ -92,6 +98,7 @@ class KeyValueListInputItem extends Component {
/> />
} }
</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