diff --git a/tab_timeline_ng.py b/tab_timeline_ng.py index 5b009f2..d5950fc 100644 --- a/tab_timeline_ng.py +++ b/tab_timeline_ng.py @@ -429,9 +429,8 @@ def _render_graphviz(dot_source: str, selected_node_id: str | None = None): sel_escaped = selected_node_id.replace("'", "\\'") if selected_node_id else '' - # Embed CSS + JS inline so there are no timing/lookup issues - inline_script = ''' - - - ''' % sel_escaped - - ui.html( - f'
' - f'{svg}{inline_script}
' - ) + }} + }}); + }} + }})(0); + ''') except ImportError: ui.label('Install graphviz Python package for graph rendering.').classes('text-warning') ui.code(dot_source).classes('w-full')