From 213aa254fbd11dd803a02c01cb6686bf46759253 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 4 Jan 2026 19:10:07 +0100 Subject: [PATCH] width of timeline --- tab_timeline_wip.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tab_timeline_wip.py b/tab_timeline_wip.py index 3fc2a21..02a77d6 100644 --- a/tab_timeline_wip.py +++ b/tab_timeline_wip.py @@ -54,18 +54,21 @@ def render_timeline_wip(data, file_path): type="STRAIGHT" )) + # --- UPDATED CONFIGURATION --- config = Config( width="100%", - height="800px", + # Increased height from 400px to 600px for better visibility + height="600px", directed=True, physics=False, hierarchical=True, layout={ "hierarchical": { "enabled": True, - "levelSeparation": 150, - "nodeSpacing": 100, - "treeSpacing": 100, + # Increased separation to widen the tree structure + "levelSeparation": 200, # Was 150 + "nodeSpacing": 150, # Was 100 + "treeSpacing": 150, # Was 100 "direction": "LR", "sortMethod": "directed" } @@ -177,4 +180,4 @@ def render_timeline_wip(data, file_path): else: # Single File Preview prefix = f"p_{target_node_id}_single" - render_preview_fields(node_data, prefix) + render_preview_fields(node_data, prefix) \ No newline at end of file