diff --git a/index.js b/index.js
index aab7daf..6921f75 100644
--- a/index.js
+++ b/index.js
@@ -1,14 +1,14 @@
module.exports = function ({subject, status, color = '#97CA00'}) {
const sbl = subject.length
const stl = status.length
- const charWidth = 7.5
+ const charWidth = 8
const sbTextWidth = sbl * charWidth
- const sbRectWidth = sbTextWidth + 15
+ const sbRectWidth = sbTextWidth + 12
const sbTextCenter = sbRectWidth / 2
- const stTextWidth = stl * charWidth
- const stRectWidth = stTextWidth + 15
+ const stTextWidth = stl * charWidth - 2
+ const stRectWidth = stTextWidth + 12
const stTextCenter = sbRectWidth + stRectWidth / 2
const width = sbRectWidth + stRectWidth
@@ -28,11 +28,11 @@ module.exports = function ({subject, status, color = '#97CA00'}) {
-
- ${subject}
- ${subject}
- ${status}
- ${status}
+
+ ${subject}
+ ${subject}
+ ${status}
+ ${status}
`
diff --git a/package.json b/package.json
index 0ff42f0..0e120cd 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "Hand-crafted badge generator.",
"main": "index.js",
"scripts": {
- "start": "node service.js"
+ "start": "node service.js",
+ "deploy": "now -T badgen --public"
},
"author": "Amio ",
"license": "ISC",