Skip to content

Commit

Permalink
More comprehensive solution for checkbox spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 29, 2021
1 parent be68cd1 commit dd53979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,7 @@ 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) {
if (element.querySelector(":scope > .optionalBlock-container > .row-group-start input[type='checkbox'], :scope > .optional-block-start input[type='checkbox'], :scope > div > .jenkins-checkbox") != null) {
element.classList.add("jenkins-form-item--tight")
}
});
Expand Down

0 comments on commit dd53979

Please sign in to comment.