File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
core/src/main/resources/lib/form Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ THE SOFTWARE.
121121 <div class =" jenkins-form-item hetero-list-container ${hasHeader?'with-drag-drop':''} ${attrs.oneEach?'one-each':''} ${attrs.honorOrder?'honor-order':''}"
122122 enableTopButton =" ${attrs.enableTopButton}" >
123123 <j : if test =" ${!readOnlyMode and attrs.enableTopButton}" >
124- <div >
124+ <span >
125125 <button type =" button" class =" jenkins-button hetero-list-add hetero-list-add-top ${empty(attrs.items)?'jenkins-hidden':''}"
126126 menualign =" ${attrs.menuAlign}" suffix =" ${attrs.name}" ><l : icon src =" symbol-add" />${attrs.addCaption?:'%Add'}
127127 </button >
128- </div >
128+ </span >
129129 </j : if >
130130
131131 <!-- display existing items -->
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ function generateButtons() {
8484 let btn = Array . from ( c . querySelectorAll ( "BUTTON.hetero-list-add" ) ) . pop ( ) ;
8585 let topButton = Array . from (
8686 c . querySelectorAll ( "BUTTON.hetero-list-add-top" ) ,
87- ) . pop ( ) ;
87+ ) . shift ( ) ;
8888
8989 let prototypes = c . lastElementChild ;
9090 while ( ! prototypes . classList . contains ( "prototypes" ) ) {
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ div.repeated-chunk {
221221 }
222222}
223223
224- .repeatable-add-top {
224+ .repeatable-add-top , .hetero-list-add-top {
225225 margin-bottom : 1rem ;
226226}
227227
You can’t perform that action at this time.
0 commit comments