mirror of
https://github.com/lockfale/OSINT-Framework.git
synced 2026-08-23 22:32:23 +02:00
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:
co-authored by
Paperclip
Claude Opus 4.6
parent
810b6f6159
commit
acdf8d741b
+1
-1
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user