summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-01 23:59:57 +0300
committerAlon Levy <alon@pobox.com>2015-04-02 00:35:01 +0300
commit1606347e24d57882cc987e0dd31f59fc659fd596 (patch)
tree6ca91bf46046f44953c00b7cfc5557959b6535b8 /src/client/view/graph_view.js
parent598f7a1a05bfc8195f35527e7ad94f387ac6f6a8 (diff)
client/layouts/concentric: consts refactor, enlarge minimal ring distance
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js4
1 files changed, 2 insertions, 2 deletions
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