From 0c2502ed936a0b1bcdb8b6379e0bf47b83c867d8 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Thu, 10 Aug 2023 21:26:32 +0900 Subject: [PATCH] fixed graph label --- assets/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/graph.js b/assets/js/graph.js index df94feda..68b8bb7f 100644 --- a/assets/js/graph.js +++ b/assets/js/graph.js @@ -242,7 +242,7 @@ async function drawGraph(baseUrl, isHome, pathColors, graphConfig) { const str = content[d.id]?.title || decodeURI(d.id.charAt(1).toUpperCase() + d.id.slice(2)) .replace("-", " "); - str.slice(0, 30) + str.length > 30 ? "..." : "" + str.slice(0, 30) + (str.length > 30 ? "..." : "") }) .style('opacity', (opacityScale - 1) / 3.75) .style("pointer-events", "none")