Left-align tree on initial load for desktop (THE-120)

Position root node near left edge of viewport so the tree has room
to expand rightward when categories are opened.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
s0lray
2026-03-26 20:08:17 -04:00
co-authored by Paperclip Claude Opus 4.6
parent 810b6f6159
commit acdf8d741b
+1 -1
View File
@@ -110,7 +110,7 @@ d3.json("arf.json").then(function(json) {
var k = Math.min((svgW - pad * 2) / bw, (svgH - pad * 2) / bh, 3);
var cx = (minY + maxY) / 2;
var cy = (minX + maxX) / 2;
var tx = svgW / 2 - margin[3] - cx * k;
var tx = pad - minY * k;
var ty = svgH / 2 - margin[0] - cy * k;
svgEl.call(zoom.transform, d3.zoomIdentity.translate(tx, ty).scale(k));