From a81e28c1ab27daed2023a597ca7c476d206a7ea7 Mon Sep 17 00:00:00 2001 From: Perplexity Date: Sun, 11 Oct 2026 17:31:52 +0000 Subject: [PATCH] Fix WizardStepper positioning drift and modal overflow - Center the active step using offsetLeft/offsetWidth instead of getBoundingClientRect, so repeated or mid-transition centering calls use untransformed layout positions and cannot accumulate drift. - Constrain the stepper to width: 100% with overflow: hidden so its max-content track can no longer extend past the modal body into the header/footer area. - Replace the window-size watcher with a ResizeObserver on the stepper's viewport so it re-centers when the modal body resizes for any reason. --- src/components/wizard/WizardStepper.vue | 51 ++++++++++++++++--------- tsconfig.app.tsbuildinfo | 2 +- 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/src/components/wizard/WizardStepper.vue b/src/components/wizard/WizardStepper.vue index b2af2ee..cf0e8a8 100644 --- a/src/components/wizard/WizardStepper.vue +++ b/src/components/wizard/WizardStepper.vue @@ -28,8 +28,7 @@