Skip to content

Commit 7f2d678

Browse files
mawinter69NotMyFault
authored andcommitted
[JENKINS-73453] make icons in table buttons resizable (jenkinsci#9482)
[JENKINS-73543] make icon in buttons in tables resizable With jenkinsci#9131 the jenkins-table__button was replaced at certain places with jenkins-button. But this change caused two regressions: - The icon size for large table was almost the same as that for medium tables - The icons wrapped in jenkins-button were not resizable - with small table the buttons overflowed the table cell This change restores the old icon size for large tables and adds additional css rules for jenkins-button inside tables so they are properly resized and the padding is correct (cherry picked from commit 19d568c)
1 parent 7ca169b commit 7f2d678

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

war/src/main/scss/components/_table.scss

+23-4
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,12 @@
157157
.jenkins-button {
158158
margin: -10px 0;
159159
padding: 0.5rem 0.75rem;
160+
min-height: 1.75rem;
160161

161162
// Increase the size of symbols compared to regular buttons
162163
svg {
163-
width: 1.375rem !important;
164-
height: 1.375rem !important;
164+
width: 1.5rem !important;
165+
height: 1.5rem !important;
165166
}
166167
}
167168

@@ -170,8 +171,8 @@
170171
svg,
171172
.build-status-icon__wrapper,
172173
img {
173-
width: 1.375rem !important;
174-
height: 1.375rem !important;
174+
width: 1.5rem !important;
175+
height: 1.5rem !important;
175176
}
176177
}
177178

@@ -192,6 +193,15 @@
192193
height: 1.3rem !important;
193194
}
194195
}
196+
197+
.jenkins-button {
198+
padding: 0.4rem 0.6rem;
199+
200+
svg {
201+
width: 1.3rem !important;
202+
height: 1.3rem !important;
203+
}
204+
}
195205
}
196206

197207
&--auto-width {
@@ -215,6 +225,15 @@
215225
height: 1rem !important;
216226
}
217227
}
228+
229+
.jenkins-button {
230+
padding: 0.3rem 0.5rem;
231+
232+
svg {
233+
width: 1rem !important;
234+
height: 1rem !important;
235+
}
236+
}
218237
}
219238

220239
&__button,

0 commit comments

Comments
 (0)