Skip to content

Commit

Permalink
[DDW-589] Update const variable definition for token input field padding
Browse files Browse the repository at this point in the history
  • Loading branch information
topseniors committed Mar 2, 2021
1 parent 643581d commit fc3171b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -43,6 +43,8 @@ type Props = {
onChangeAsset: Function,
};

const INPUT_FIELD_PADDING_DELTA = 10;

@observer
export default class AssetTokenInput extends Component<Props> {
static contextTypes = {
Expand All @@ -68,7 +70,11 @@ export default class AssetTokenInput extends Component<Props> {
}

const rightContentDomRect = rightContentDom.getBoundingClientRect();
return { paddingRight: `${rightContentDomRect.width + 10}px` };
return {
paddingRight: `${
rightContentDomRect.width + INPUT_FIELD_PADDING_DELTA
}px`,
};
};

render() {
Expand Down

0 comments on commit fc3171b

Please sign in to comment.