From 186efd6aab4d21575f390a01d297f72f1724af1f Mon Sep 17 00:00:00 2001 From: Claude Dev Date: Mon, 23 Mar 2026 22:04:48 +0100 Subject: [PATCH] Tutorial: Modal scrollt automatisch zum Feld beim Betreten jedes Schritts _enterStep scrollt jetzt bei Modal-Steps zum bubbleTarget bevor die Bubble positioniert wird. Damit ist das Formularfeld immer zentriert sichtbar wenn der Schritt erscheint. --- src/static/js/tutorial.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/static/js/tutorial.js b/src/static/js/tutorial.js index 4b14db5..66a0b1b 100644 --- a/src/static/js/tutorial.js +++ b/src/static/js/tutorial.js @@ -1394,6 +1394,11 @@ const Tutorial = { this._els.spotlight.style.opacity = '0'; } + // Modal-Steps: zum bubbleTarget scrollen bevor Bubble positioniert wird + if (isModalStep && step.bubbleTarget) { + await this._scrollModalTo(step.bubbleTarget); + } + // Bubble konfigurieren und anzeigen this._showBubble(step, i);