🎨 Simplify scroll position calculation formatting in GamemasterExplorer component

This commit is contained in:
2026-01-28 21:14:16 +00:00
parent 9507c7b304
commit 3dc5565df5

View File

@@ -770,7 +770,8 @@ function scrollToResult() {
const elementHeight = lineElement.offsetHeight;
// Calculate scroll position to center element in container
const scrollTo = elementOffsetTop - (containerHeight / 2) + (elementHeight / 2);
const scrollTo =
elementOffsetTop - containerHeight / 2 + elementHeight / 2;
container.scrollTo({ top: scrollTo, behavior: 'smooth' });
}
return true;