Skip to content

Commit 7bf1337

Browse files
committed
push
1 parent c9365d8 commit 7bf1337

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/main/scss/components/_app-bar.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
}
127127

128128
.jenkins-bottom-app-bar__shadow {
129-
--semi-translucent: color-mix(in sRGB, var(--background) 100%, transparent);
129+
--semi-translucent: color-mix(in sRGB, var(--background) 70%, transparent);
130130

131131
position: sticky;
132132
height: calc(
@@ -162,11 +162,13 @@
162162
}
163163

164164
&--stuck {
165+
backdrop-filter: blur(20px);
165166
background: linear-gradient(
166167
to right,
167168
var(--background),
168-
var(--semi-translucent) 3rem,
169-
var(--semi-translucent) calc(100% - 3rem),
169+
var(--background) 3rem,
170+
var(--semi-translucent),
171+
var(--background) calc(100% - 3rem),
170172
var(--background)
171173
);
172174

war/src/main/webapp/scripts/hudson-behavior.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,19 +1762,16 @@ function rowvgStartEachRow(recursive, f) {
17621762
},
17631763
);
17641764

1765-
window.addEventListener("load", function () {
17661765
// Add a class to the bottom bar when it's stuck to the bottom of the screen
17671766
Behaviour.specify(".jenkins-bottom-app-bar__shadow", "jenkins-bottom-app-bar__shadow", 0, function (el) {
17681767
const dialog = el.closest("dialog");
17691768

17701769
const observer = new IntersectionObserver(
1771-
function (entries) {
1772-
const e = entries[0];
1773-
el.classList.toggle(
1770+
([e]) =>
1771+
e.target.classList.toggle(
17741772
"jenkins-bottom-app-bar__shadow--stuck",
17751773
e.intersectionRatio < 1,
1776-
);
1777-
},
1774+
),
17781775
{
17791776
threshold: [1],
17801777
root: dialog || null,
@@ -1783,7 +1780,6 @@ function rowvgStartEachRow(recursive, f) {
17831780

17841781
observer.observe(el);
17851782
});
1786-
});
17871783

17881784
/**
17891785
* Function that provides compatibility to the checkboxes without title on an f:entry

0 commit comments

Comments
 (0)