width of timeline

This commit is contained in:
2026-01-04 19:10:07 +01:00
parent f51a0d6fe0
commit 213aa254fb

View File

@@ -54,18 +54,21 @@ def render_timeline_wip(data, file_path):
type="STRAIGHT" type="STRAIGHT"
)) ))
# --- UPDATED CONFIGURATION ---
config = Config( config = Config(
width="100%", width="100%",
height="800px", # Increased height from 400px to 600px for better visibility
height="600px",
directed=True, directed=True,
physics=False, physics=False,
hierarchical=True, hierarchical=True,
layout={ layout={
"hierarchical": { "hierarchical": {
"enabled": True, "enabled": True,
"levelSeparation": 150, # Increased separation to widen the tree structure
"nodeSpacing": 100, "levelSeparation": 200, # Was 150
"treeSpacing": 100, "nodeSpacing": 150, # Was 100
"treeSpacing": 150, # Was 100
"direction": "LR", "direction": "LR",
"sortMethod": "directed" "sortMethod": "directed"
} }
@@ -177,4 +180,4 @@ def render_timeline_wip(data, file_path):
else: else:
# Single File Preview # Single File Preview
prefix = f"p_{target_node_id}_single" prefix = f"p_{target_node_id}_single"
render_preview_fields(node_data, prefix) render_preview_fields(node_data, prefix)