chore: final adjustments
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user