Skip to content

Commit db4cd77

Browse files
committed
Format
1 parent 35d7440 commit db4cd77

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

.stylelintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ module.exports = {
1717
"number-max-precision": 5,
1818
"no-duplicate-selectors": null,
1919
"hue-degree-notation": "number",
20+
"scss/operator-no-newline-after": null,
2021
},
2122
};

src/main/js/components/dialogs/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Dialog.prototype.init = function () {
4040
document.body.appendChild(this.dialog);
4141

4242
// Append title element
43-
const title = createElementFromHtml(`<div class='jenkins-dialog__title'><span></span></div>`);
43+
const title = createElementFromHtml(
44+
`<div class='jenkins-dialog__title'><span></span></div>`,
45+
);
4446
this.dialog.appendChild(title);
4547
title.querySelector("span").innerText = this.options.title;
4648

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@
130130

131131
position: sticky;
132132
height: calc(
133-
2.375rem + (var(--bottom-app-bar-padding) * 2) + 1px + var(--jenkins-border-width)
133+
2.375rem + (var(--bottom-app-bar-padding) * 2) + 1px +
134+
var(--jenkins-border-width)
134135
);
135136
bottom: -1px;
136-
margin-bottom: calc((2.375rem + calc(var(--bottom-app-bar-padding) * 2)) * -1);
137+
margin-bottom: calc((2.375rem + var(--bottom-app-bar-padding)) * -1);
137138
border-top: var(--jenkins-border-width) solid var(--jenkins-border-color);
138139
z-index: 997;
139140

@@ -161,6 +162,12 @@
161162
border-top-color: transparent;
162163
}
163164

165+
&--borderless {
166+
margin-top: calc(
167+
(var(--bottom-app-bar-padding) + var(--jenkins-border-width)) * -1
168+
);
169+
}
170+
164171
&--stuck {
165172
&::before {
166173
content: "";

src/main/scss/components/_dialogs.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $jenkins-dialog-padding: 1.25rem;
1414
padding: 0;
1515
display: flex;
1616
flex-direction: column;
17+
1718
// Thin highlight for dark themes to differentiate the dialog from its backdrop
1819
outline: 1px solid rgb(255 255 255 / 0.05);
1920

@@ -102,6 +103,12 @@ $jenkins-dialog-padding: 1.25rem;
102103
animation: jenkins-dialog-backdrop-animate-out 0.1s linear;
103104
}
104105
}
106+
107+
.jenkins-bottom-app-bar__shadow {
108+
margin-bottom: calc(
109+
(2.375rem + calc(var(--bottom-app-bar-padding) * 2)) * -1
110+
);
111+
}
105112
}
106113

107114
@keyframes jenkins-dialog-backdrop-animate-in {

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

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

1765-
// Add a class to the bottom bar when it's stuck to the bottom of the screen
1766-
Behaviour.specify(".jenkins-bottom-app-bar__shadow", "jenkins-bottom-app-bar__shadow", 0, function (el) {
1765+
// Add a class to the bottom bar when it's stuck to the bottom of the screen
1766+
Behaviour.specify(
1767+
".jenkins-bottom-app-bar__shadow",
1768+
"jenkins-bottom-app-bar__shadow",
1769+
0,
1770+
function (el) {
17671771
const dialog = el.closest("dialog");
17681772

17691773
const observer = new IntersectionObserver(
@@ -1779,7 +1783,8 @@ function rowvgStartEachRow(recursive, f) {
17791783
);
17801784

17811785
observer.observe(el);
1782-
});
1786+
},
1787+
);
17831788

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

0 commit comments

Comments
 (0)