aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/components/asset_amount_input.tsx2
-rw-r--r--packages/instant/src/components/scaling_input.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/asset_amount_input.tsx b/packages/instant/src/components/asset_amount_input.tsx
index beb21a4cf..bfa857f0e 100644
--- a/packages/instant/src/components/asset_amount_input.tsx
+++ b/packages/instant/src/components/asset_amount_input.tsx
@@ -40,7 +40,7 @@ export class AssetAmountInput extends React.Component<AssetAmountInputProps, Ass
<ScalingAmountInput
{...rest}
startWidthCh={3.5}
- endWidthCh={5}
+ endWidthCh={4}
maxFontSizePx={this.props.startingFontSizePx}
onChange={this._handleChange}
onFontSizeChange={this._handleFontSizeChange}
diff --git a/packages/instant/src/components/scaling_input.tsx b/packages/instant/src/components/scaling_input.tsx
index c1111cea9..57ebf93ac 100644
--- a/packages/instant/src/components/scaling_input.tsx
+++ b/packages/instant/src/components/scaling_input.tsx
@@ -34,12 +34,12 @@ export interface ScalingInputSnapshot {
inputWidthPx: number;
}
// This is a magic number that was determined experimentally.
-const percentageToReduceByPerCharacter = 0.15;
+const percentageToReduceByPerCharacter = 0.18;
export class ScalingInput extends React.Component<ScalingInputProps, ScalingInputState> {
public static defaultProps = {
onChange: util.boundNoop,
onFontSizeChange: util.boundNoop,
- maxLength: 10,
+ maxLength: 9,
};
public state = {
fixedWidthInPxIfExists: undefined,