Fixed: Preferred words remove button in Firefox

Fixes #3710
This commit is contained in:
Mark McDowall 2020-05-24 12:06:35 -07:00
parent cb9d78064a
commit 5951992bd5
3 changed files with 39 additions and 24 deletions

View File

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

View File

@ -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,14 +85,17 @@ class KeyValueListInputItem extends Component {
onFocus={this.onFocus} onFocus={this.onFocus}
onBlur={this.onBlur} onBlur={this.onBlur}
/> />
</div>
{ {
!isNew && !isNew &&
<div className={styles.buttonWrapper}>
<IconButton <IconButton
name={icons.REMOVE} name={icons.REMOVE}
tabIndex={-1} tabIndex={-1}
onPress={this.onRemovePress} onPress={this.onRemovePress}
/> />
</div>
} }
</div> </div>
); );

View File

@ -13,7 +13,7 @@
.episodeNumber { .episodeNumber {
composes: cell from '~Components/Table/Cells/TableRowCell.css'; composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 70px; width: 65px;
} }
.size { .size {