Skip to content

Commit df00577

Browse files
authored
Up and down arrows move around during running build (#828)
1 parent 0274776 commit df00577

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.pgv-scroll-to-top-bottom {
22
position: fixed;
3-
bottom: calc(var(--section-padding) * 1 + (var(--pgv-offset-bottom, 0px)));
3+
bottom: var(--section-padding);
44
right: calc(var(--section-padding) * 2);
55
display: flex;
66
gap: 0.375rem;

src/main/frontend/pipeline-console-view/pipeline-console/main/scroll-to-top-bottom.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ export default function ScrollToTopBottom() {
2323
setIsAtTop(atTop);
2424
setIsAtBottom(atBottom);
2525
setIsScrollable(scrollable);
26-
27-
// Distance from bottom
28-
const distanceFromBottom = docHeight - (scrollTop + windowHeight);
29-
30-
// Only trigger the offset if we're within 20px from the bottom
31-
const offset = Math.max(0, Math.min(100, 100 - distanceFromBottom));
32-
33-
const root = document.documentElement;
34-
root.style.setProperty("--pgv-offset-bottom", `${offset}px`);
3526
};
3627

3728
updateScrollState();

0 commit comments

Comments
 (0)