From 353c57a715c53389f386ed401b9aeaf8184140fa Mon Sep 17 00:00:00 2001 From: Jeff Colombo Date: Mon, 18 Feb 2019 22:34:28 -0500 Subject: [PATCH] fix spacer issue --- dist/main-bundle.js | 4 ++++ src/ts/app/components/PokemonExplorer/StatDisplay.tsx | 3 +++ 2 files changed, 7 insertions(+) diff --git a/dist/main-bundle.js b/dist/main-bundle.js index b627f92..c432acd 100644 --- a/dist/main-bundle.js +++ b/dist/main-bundle.js @@ -39193,6 +39193,10 @@ function (_react_1$default$Comp) { spacer += String.fromCharCode(160) + String.fromCharCode(160); } else if (statValue < 100) { spacer += String.fromCharCode(160); + + if (statValue < 10) { + spacer += String.fromCharCode(160); + } } return react_1.default.createElement("div", { diff --git a/src/ts/app/components/PokemonExplorer/StatDisplay.tsx b/src/ts/app/components/PokemonExplorer/StatDisplay.tsx index 5ce3995..b7d6ab5 100644 --- a/src/ts/app/components/PokemonExplorer/StatDisplay.tsx +++ b/src/ts/app/components/PokemonExplorer/StatDisplay.tsx @@ -35,6 +35,9 @@ export class StatDisplay extends React.Component { spacer += String.fromCharCode(160) + String.fromCharCode(160); } else if (statValue < 100) { spacer += String.fromCharCode(160); + if (statValue < 10) { + spacer += String.fromCharCode(160); + } } return (