From d0047e48cbf25ccbcc7ee78181d935c5396aa4f6 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 5 Jul 2017 14:03:57 -0700 Subject: [PATCH] Install text size calculator package As per recommendation of @cryptoquick this thing is a much more sound means of doing the calculation than my initial approach --- ui/package.json | 1 + ui/yarn.lock | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ui/package.json b/ui/package.json index de754779d8..cdcc05a82f 100644 --- a/ui/package.json +++ b/ui/package.json @@ -90,6 +90,7 @@ "dependencies": { "axios": "^0.13.1", "bootstrap": "^3.3.7", + "calculate-size": "^1.1.1", "classnames": "^2.2.3", "dygraphs": "^2.0.0", "fast.js": "^0.1.1", diff --git a/ui/yarn.lock b/ui/yarn.lock index 18b006d684..146be85030 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -1564,6 +1564,10 @@ bytes@2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.4.0.tgz#7d97196f9d5baf7f6935e25985549edd2a6c2339" +calculate-size@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/calculate-size/-/calculate-size-1.1.1.tgz#ae7caa1c7795f82c4f035dc7be270e3581dae3ee" + caller-path@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"