Skip to content

Commit 174786d

Browse files
committed
Improve card header layout to match the latest Jenkins UI changes.
1 parent adc1dcc commit 174786d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/main/resources/bootstrap5/card.jelly

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
<st:adjunct includes="io.jenkins.plugins.bootstrap5"/>
3232

3333
<div class="card ${class}">
34-
<div class="card-body ${bodyClass}">
35-
<div class="card-title">
36-
${title}
37-
34+
<div class="card-header">
35+
<div class="d-flex align-items-center">
36+
<span class="card-header-title">
37+
${title}
38+
</span>
3839
<span class="icon-border">
3940
<j:if test="${pngIcon!=null}">
4041
<img src="${pngIcon}" class="icon-right"/>
@@ -44,8 +45,9 @@
4445
class="icon-right"/>
4546
</j:if>
4647
</span>
47-
4848
</div>
49+
</div>
50+
<div class="card-body ${bodyClass}">
4951
<d:invokeBody/>
5052
</div>
5153
</div>

src/main/webapp/css/jenkins-style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,15 @@ pre {
5151
font-size: inherit;
5252
}
5353

54-
.card-title {
55-
font-size: 1.2rem;
54+
.card-header {
55+
font-size: 1.1rem;
5656
font-weight: 500;
5757
margin-bottom: 1.5rem;
58+
background: var(--item-background--hover);
59+
}
60+
61+
.card-header-title {
62+
margin-right: auto;
5863
}
5964

6065
.icon-right {

0 commit comments

Comments
 (0)