Skip to content

Commit e812e57

Browse files
author
OpenShift Bot
authored
Merge pull request #1231 from sg00dwin/label-length-in-table
Merged by openshift-bot
2 parents 8c3bb14 + 93db1f6 commit e812e57

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/styles/_core.less

+4
Original file line numberDiff line numberDiff line change
@@ -1145,13 +1145,17 @@ pre.clipped {
11451145
margin-right: 5px;
11461146
// A bit more space below the actions button.
11471147
margin-top: 3px;
1148+
width: 100%; // needed to enable truncation within table
11481149
&:before {
11491150
content: ' ';
11501151
white-space: normal;
11511152
}
11521153
.label-pair {
11531154
margin-bottom: 2px;
1155+
width: 100%; // needed to enable truncation within table
11541156
.label {
1157+
// prevent short label-key or label-value from being truncated less than 4 characters
1158+
min-width: 50px;
11551159
&:first-child {
11561160
border-radius: 2px 0 0 2px;
11571161
}

dist/styles/main.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -4064,9 +4064,10 @@ status-icon .spinner.spinner-inline{margin-left:.153846em;margin-right:.153846em
40644064
.last-status status-icon .spinner.spinner-inline{margin-left:4px;margin-right:4px}
40654065
pre.clipped{display:inline-block;margin-top:10px;max-width:100%}
40664066
pre.clipped.scroll{max-height:150px;overflow:auto;width:100%}
4067-
.k8s-label{margin-right:5px;margin-top:3px}
4067+
.k8s-label{margin-right:5px;margin-top:3px;width:100%}
40684068
.k8s-label:before{content:' ';white-space:normal}
4069-
.k8s-label .label-pair{margin-bottom:2px}
4069+
.k8s-label .label-pair{margin-bottom:2px;width:100%}
4070+
.k8s-label .label-pair .label{min-width:50px}
40704071
.k8s-label .label-pair .label:first-child{border-radius:2px 0 0 2px}
40714072
.k8s-label .label-pair .label:last-child{border-radius:0 2px 2px 0}
40724073
.k8s-label .label-pair .label-key{background-color:#bee1f4;color:#00659c;padding-top:4px;padding-bottom:4px;margin-left:0;font-size:12px}

0 commit comments

Comments
 (0)