From 59c0b8ac688149333d6e6fb4139bf97f810bc84d Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 30 Jun 2016 11:19:19 +0200 Subject: Tweak various front-end items --- web/js/nms-map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/js/nms-map.js') diff --git a/web/js/nms-map.js b/web/js/nms-map.js index 491916b..f95cde5 100644 --- a/web/js/nms-map.js +++ b/web/js/nms-map.js @@ -313,8 +313,8 @@ nmsMap._drawSwitch = function(sw) this._c.switch.ctx.shadowBlur = 0; var switchtext = sw; var textl = switchtext.length; - if (textl > 10) - switchtext = switchtext.slice(0,5) + ".." + switchtext.slice(textl-2,textl); + if (textl > 12) + switchtext = switchtext.slice(0,7) + ".." + switchtext.slice(textl-2,textl); if (this._lastName[sw] != switchtext) { nmsMap.stats.textSwitchDraws++; -- cgit v1.2.3