Skip to content

Commit

Permalink
[JENKINS-67198] Increase width of forms (jenkinsci#6172)
Browse files Browse the repository at this point in the history
* Update theme.less

* Update job config page width to match inner form components

* Increase widths of form elements (roughly 100 pixels wider)
  • Loading branch information
janfaracik authored Jan 13, 2022
1 parent 685b60c commit 70c92a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/hudson/model/Job/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ THE SOFTWARE.
<l:main-panel>
<div class="container">
<div class="row">
<div class="col-md-offset-2 col-md-20">
<div class="jenkins-config-container">

<div class="behavior-loading"><l:spinner text="${%LOADING}"/></div>

Expand Down
7 changes: 7 additions & 0 deletions war/src/main/js/widgets/config/tabbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@
}

}

#jenkins .jenkins-config-container {
width: 100vw;
max-width: calc(var(--form-item-max-width) + 20px);
margin: auto;
}

#jenkins{
.jenkins-config {
border:1px solid var(--input-border);
Expand Down
6 changes: 3 additions & 3 deletions war/src/main/less/abstracts/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@
--input-border: #C3CCD1;
--input-border-hover: #5C7889;
--input-hidden-password-bg-color: #f9f9f9;
--form-item-max-width: 650px;
--form-item-max-width--small: 300px;
--form-item-max-width--medium: 450px;
--form-item-max-width: ~"min(65vw, 1600px)";
--form-item-max-width--medium: ~"min(50vw, 1400px)";
--form-item-max-width--small: ~"min(35vw, 1200px)";
--form-label-font-weight: bold;
--form-input-padding: 8px;
--form-input-border-radius: 6px;
Expand Down

0 comments on commit 70c92a5

Please sign in to comment.