diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-23 08:42:28 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-23 08:42:28 +0800 |
commit | 28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef (patch) | |
tree | 016a383e1a6982899da03c64adf93654c47185ec /packages/instant/src/components/scaling_input.tsx | |
parent | bdf623dab54132f257057a6949d0a1e245d0b468 (diff) | |
download | dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar.gz dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar.bz2 dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar.lz dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar.xz dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.tar.zst dexon-sol-tools-28f0deb3ebe2f78f98e79d59b8b2a3eacb1c6fef.zip |
chore: final adjustments
Diffstat (limited to 'packages/instant/src/components/scaling_input.tsx')
-rw-r--r-- | packages/instant/src/components/scaling_input.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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, |