From 1606347e24d57882cc987e0dd31f59fc659fd596 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 1 Apr 2015 23:59:57 +0300 Subject: client/layouts/concentric: consts refactor, enlarge minimal ring distance --- src/client/view/graph_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/view/graph_view.js') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 88e01739..94495cab 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -476,10 +476,10 @@ function GraphView(spec) { function link_text__short(d) { var name = d.name || ""; - if (temporary || name.length < 25) { + if (temporary || name.length < consts.link_text_short_length + 3) { return name; } - return name.substring(0, 14) + "..."; + return name.substring(0, consts.link_text_short_length) + "..."; } link_text -- cgit v1.3.1