- hello
-
+
diff --git a/core/src/main/resources/lib/form/rowSet.jelly b/core/src/main/resources/lib/form/rowSet.jelly
index 6558e243b75b..94468d70a689 100644
--- a/core/src/main/resources/lib/form/rowSet.jelly
+++ b/core/src/main/resources/lib/form/rowSet.jelly
@@ -35,8 +35,8 @@ THE SOFTWARE.
id of the thing that serves as the group head, if that's available separately
-
- Classes to apply to the row set
+
+ Removes the "jenkins-form-item" class if false
@@ -46,8 +46,7 @@ THE SOFTWARE.
-
asda
-
+
diff --git a/core/src/main/resources/lib/form/section_.js b/core/src/main/resources/lib/form/section_.js
index ebdcc91f5d44..a0c177c24726 100644
--- a/core/src/main/resources/lib/form/section_.js
+++ b/core/src/main/resources/lib/form/section_.js
@@ -55,8 +55,6 @@ var section = (function (){
if (e.className == "jenkins-section__title" && isVisible(e)) {
var child = new SectionNode(e);
- console.log(e.className)
-
parent.children.push(child);
// The next line seems to be unnecessary, as there are no children inside the section header itself.
// So this code will always returns a flat list of section headers.
diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less
index f2556c485fe4..fbcf210daa56 100644
--- a/war/src/main/less/modules/form.less
+++ b/war/src/main/less/modules/form.less
@@ -16,7 +16,7 @@
}
&--tight + .jenkins-form-item--tight {
- background: red;
+ margin-top: -0.9rem;
}
&--small {
diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js
index 5d10fa86da42..2174329378b0 100644
--- a/war/src/main/webapp/scripts/hudson-behavior.js
+++ b/war/src/main/webapp/scripts/hudson-behavior.js
@@ -2346,6 +2346,15 @@ var hoverNotification = (function() {
};
})();
+// Decrease vertical padding for checkboxes
+window.addEventListener('load', function () {
+ document.querySelectorAll(".jenkins-form-item").forEach(function (element) {
+ if (element.querySelector("input[type='checkbox']") != null && element.querySelector(".advancedLink") == null) {
+ element.classList.add("jenkins-form-item--tight")
+ }
+ });
+})
+
/**
* Loads the script specified by the URL.
*