From 367a2e15e6f06869962685a3271d2a6bac58e8f9 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Fri, 8 Oct 2021 13:41:34 +0100 Subject: [PATCH] Update field, add back inline error --- core/src/main/resources/lib/form/entry.jelly | 2 +- .../main/resources/lib/hudson/newFromList/form.jelly | 12 +++++------- war/src/main/less/base/style.less | 7 ++++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/core/src/main/resources/lib/form/entry.jelly b/core/src/main/resources/lib/form/entry.jelly index c89086875bd1..4dddd1dc3ce1 100644 --- a/core/src/main/resources/lib/form/entry.jelly +++ b/core/src/main/resources/lib/form/entry.jelly @@ -69,7 +69,7 @@ THE SOFTWARE. -
+
diff --git a/core/src/main/resources/lib/hudson/newFromList/form.jelly b/core/src/main/resources/lib/hudson/newFromList/form.jelly index 92fef4eb164f..6822d99d3ac7 100644 --- a/core/src/main/resources/lib/hudson/newFromList/form.jelly +++ b/core/src/main/resources/lib/hudson/newFromList/form.jelly @@ -52,13 +52,11 @@ THE SOFTWARE. - -
- + + onchange="updateOk(this.form)" onkeyup="updateOk(this.form)" /> -
+
@@ -120,12 +118,12 @@ THE SOFTWARE. let nameInput = document.getElementById("name"); let radios = form.querySelectorAll('input[type="radio"]'); - if (nameInput.value.length == 0) { + if (nameInput.value.length === 0) { return true; } // this means we only have dummy checkboxes - if (radios.length == 2) { + if (radios.length === 2) { return true; } diff --git a/war/src/main/less/base/style.less b/war/src/main/less/base/style.less index 802c82bac374..e79ea566f788 100644 --- a/war/src/main/less/base/style.less +++ b/war/src/main/less/base/style.less @@ -273,7 +273,6 @@ pre.console { } .setting-main { - margin-top: 0.25rem; width: 100%; /* try to make this column as big as possible. */ } @@ -577,9 +576,10 @@ label.attach-previous { padding-left: 20px; min-height: 16px; line-height: 16px; - background-image: url("../../images/16x16/error.png"); + background-image: url("../../images/svgs/error.svg"); background-position: left center; background-repeat: no-repeat; + background-size: contain; } .error-inline { @@ -593,10 +593,11 @@ label.attach-previous { padding-left: 20px; min-height: 16px; line-height: 16px; - background-image: url("../../images/16x16/warning.png"); + background-image: url("../../images/svgs/warning.svg"); background-size: 16px 16px; background-position: left center; background-repeat: no-repeat; + background-size: contain; } .warning-inline {