diff --git a/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.scss b/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.scss index 5f7fc5434..53c42b5ad 100644 --- a/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.scss +++ b/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.scss @@ -1,6 +1,6 @@ .pgv-scroll-to-top-bottom { position: fixed; - bottom: calc(var(--section-padding) * 1 + (var(--pgv-offset-bottom, 0px))); + bottom: var(--section-padding); right: calc(var(--section-padding) * 2); display: flex; gap: 0.375rem; diff --git a/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx b/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx index 8b79c72a1..34c966028 100644 --- a/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx +++ b/src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx @@ -23,15 +23,6 @@ export default function ScrollToTopBottom() { setIsAtTop(atTop); setIsAtBottom(atBottom); setIsScrollable(scrollable); - - // Distance from bottom - const distanceFromBottom = docHeight - (scrollTop + windowHeight); - - // Only trigger the offset if we're within 20px from the bottom - const offset = Math.max(0, Math.min(100, 100 - distanceFromBottom)); - - const root = document.documentElement; - root.style.setProperty("--pgv-offset-bottom", `${offset}px`); }; updateScrollState();