Skip to content

Commit 1698e2e

Browse files
Improve overflow behavior for text badges
1 parent 4db8ac8 commit 1698e2e

File tree

1 file changed

+8
-2
lines changed
  • src/main/resources/com/jenkinsci/plugins/badge

1 file changed

+8
-2
lines changed

src/main/resources/com/jenkinsci/plugins/badge/assets.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
margin: 0 0.1rem 0 0;
88
text-decoration: none;
99
text-align: center;
10-
white-space: nowrap;
10+
white-space: normal;
1111
vertical-align: middle;
1212
position: relative;
13+
word-break: break-word;
14+
overflow-wrap: break-word;
15+
max-width: 100%;
1316
}
1417

1518
.badge-text--background::before {
@@ -38,7 +41,10 @@
3841
margin: 0 0.1rem 0 0;
3942
text-decoration: none;
4043
text-align: center;
41-
white-space: nowrap;
44+
white-space: normal;
4245
vertical-align: middle;
4346
position: relative;
47+
word-break: break-word;
48+
overflow-wrap: break-word;
49+
max-width: 100%;
4450
}

0 commit comments

Comments
 (0)