Skip to content

Commit

Permalink
fix margin-bottom of jenkins-form-item (#385)
Browse files Browse the repository at this point in the history
Co-authored-by: Kris Stern <krisstern@outlook.com>
  • Loading branch information
mawinter69 and krisstern authored Jan 6, 2025
1 parent 5601ba3 commit 28150ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,32 +104,15 @@
<div class="jenkins-dialog__title">Order your ice cream</div>
<div class="jenkins-dialog__contents">
<div width="100%">
<div class="jenkins-form-item tr ">
<div class="jenkins-form-label help-sibling">Name</div>
<div class="setting-main">
<input name="name" placeholder="" type="text" class="jenkins-input " value=""/>
</div>
<div class="validation-error-area"></div>
</div>
<div class="jenkins-form-item tr ">
<div class="jenkins-form-label help-sibling">Quantity</div>
<div class="setting-main">
<input min="1" max="9" name="quantity" type="number" class="jenkins-input " value="1"/>
</div>
<div class="validation-error-area"></div>
</div>
<div class="jenkins-form-item tr ">
<div class="jenkins-form-label help-sibling">Choose flavor</div>
<div class="setting-main">
<div class="jenkins-select">
<select
fillurl="${rootURL}/descriptorByName/io.jenkins.plugins.designlibrary.Dialogs/fillFlavorItems"
name="_.flavor" class="jenkins-select__input select" value="">
</select>
</div>
</div>
<div class="validation-error-area"></div>
</div>
<f:entry title="${%Name}">
<f:textbox name="name"/>
</f:entry>
<f:entry title="${%Quantity}">
<f:number name="quantity" min="1" max="9"/>
</f:entry>
<f:entry title="${%Choose flavor}" class="jdl-dialog-form--last">
<f:select field="flavor"/>
</f:entry>
</div>
<div class="jenkins-buttons-row jenkins-buttons-row--equal-width jenkins-dialog__buttons">
<button data-id="ok" type="submit" class="jenkins-button jenkins-button--primary ">Order</button>
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/scss/components/_component-sample.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@
}

.jenkins-form-item, .jenkins-search-container {
margin-bottom: 0;
min-width: 300px;
}

:nth-last-child(1 of .jenkins-form-item) {
margin-bottom: 0;
}

.repeated-container {
min-width: 600px;
}
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/scss/pages/_dialogs.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#toggle-switch-formsubmit {
width: 100%;
}
}

.jdl-dialog-form--last {
margin-bottom: var(--section-padding) !important;
}

0 comments on commit 28150ef

Please sign in to comment.