From 9090fff5c33ddff1e6feeef7ff7f1a75842995f1 Mon Sep 17 00:00:00 2001 From: Tim Bradgate Date: Sat, 6 Jun 2026 00:26:53 +0100 Subject: [PATCH 1/4] Fix revision graph width stuck at 800px in client-v3 (#1146) The SVG was always rendered at 800px because updateWidth() was a no-op at onMounted() time: the parent component uses a loading gate (v-if="!loading") that defers RevisionGraph's mount until after an async fetch, at which point svgRef.value is still null on the first render tick. Replace window.addEventListener('resize') with a ResizeObserver on the component root div (containerRef), which fires on initial attach, on BCollapse open/close, and on window resize. Also add initZoom() to the revisions watch so zoom is initialised when data arrives after mount. Co-authored-by: Claude Sonnet 4.6 --- .../show/config/script/RevisionGraph.vue | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/client-v3/src/components/show/config/script/RevisionGraph.vue b/client-v3/src/components/show/config/script/RevisionGraph.vue index 9ff2cc1b4..71e2c1add 100644 --- a/client-v3/src/components/show/config/script/RevisionGraph.vue +++ b/client-v3/src/components/show/config/script/RevisionGraph.vue @@ -1,5 +1,5 @@