Skip to content

Commit

Permalink
Merge pull request #9614 from NotMyFault/backporting-2.462.2
Browse files Browse the repository at this point in the history
Backporting for 2.462.2
  • Loading branch information
NotMyFault authored Aug 15, 2024
2 parents 7ca169b + bb61a4e commit 816597f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
6 changes: 4 additions & 2 deletions war/src/main/js/add-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ $.when(getItems()).done(function (data) {

var iconDiv = drawIcon(elem);
item.appendChild(iconDiv);
var labelContainer = document.createElement("div");
item.appendChild(labelContainer);

var label = item.appendChild(document.createElement("label"));
var label = labelContainer.appendChild(document.createElement("label"));

var radio = label.appendChild(document.createElement("input"));
radio.type = "radio";
Expand All @@ -158,7 +160,7 @@ $.when(getItems()).done(function (data) {

displayName.appendChild(document.createTextNode(elem.displayName));

var desc = item.appendChild(document.createElement("div"));
var desc = labelContainer.appendChild(document.createElement("div"));
desc.className = "desc";
desc.innerHTML = checkForLink(elem.description);

Expand Down
11 changes: 4 additions & 7 deletions war/src/main/js/widgets/add/addform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,13 @@
}

.default-icon {
position: absolute;
left: 10px;
top: 10px;
height: 48px;
width: 48px;
height: 40px;
width: 40px;
border-radius: 50%;
text-align: center;
line-height: 48px;
line-height: 36px;
font-weight: bold;
font-size: 175%;
font-size: 125%;
color: #ffffff;
text-shadow: rgba(0, 0, 0, 0.25) 0 -1px 1px;
opacity: 0.75;
Expand Down
27 changes: 23 additions & 4 deletions war/src/main/scss/components/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@
.jenkins-button {
margin: -10px 0;
padding: 0.5rem 0.75rem;
min-height: 1.75rem;

// Increase the size of symbols compared to regular buttons
svg {
width: 1.375rem !important;
height: 1.375rem !important;
width: 1.5rem !important;
height: 1.5rem !important;
}
}

Expand All @@ -170,8 +171,8 @@
svg,
.build-status-icon__wrapper,
img {
width: 1.375rem !important;
height: 1.375rem !important;
width: 1.5rem !important;
height: 1.5rem !important;
}
}

Expand All @@ -192,6 +193,15 @@
height: 1.3rem !important;
}
}

.jenkins-button {
padding: 0.4rem 0.6rem;

svg {
width: 1.3rem !important;
height: 1.3rem !important;
}
}
}

&--auto-width {
Expand All @@ -215,6 +225,15 @@
height: 1rem !important;
}
}

.jenkins-button {
padding: 0.3rem 0.5rem;

svg {
width: 1rem !important;
height: 1rem !important;
}
}
}

&__button,
Expand Down

0 comments on commit 816597f

Please sign in to comment.