From 94dbbc694f15cfd7c2e74f5bef5c010432faff72 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 3 Feb 2026 14:05:01 +0100 Subject: [PATCH] Fix vertical timeline scaling by disabling container width stretch Vertical graphs now render at natural size instead of stretching to fill container width, which was making nodes appear giant. Co-Authored-By: Claude Opus 4.5 --- tab_timeline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tab_timeline.py b/tab_timeline.py index c91e265..997f0ad 100644 --- a/tab_timeline.py +++ b/tab_timeline.py @@ -36,7 +36,9 @@ def render_timeline_tab(data, file_path): direction = "LR" if view_mode == "🌳 Horizontal" else "TB" try: graph_dot = htree.generate_graph(direction=direction) - st.graphviz_chart(graph_dot, use_container_width=True) + # Vertical mode: don't stretch to container width (keeps nodes small) + use_full_width = (direction == "LR") + st.graphviz_chart(graph_dot, use_container_width=use_full_width) except Exception as e: st.error(f"Graph Error: {e}")