Skip to content

Commit 9698293

Browse files
committed
CS-14844
-If value label in detail view gets too long, then add horizontal scrollbar to value, to avoid truncation -Lower font size to 11px (-1px) to better fit longer data into UI reviewed-by: sonny
1 parent d646f30 commit 9698293

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ui/css/cloudstack3.css

+16
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,22 @@ div.list-view td.state.off span {
14111411
text-indent: 0;
14121412
}
14131413

1414+
.detail-group .main-groups table td.value span {
1415+
display: block;
1416+
height: 30px;
1417+
overflow: auto;
1418+
position: relative;
1419+
top: 9px;
1420+
}
1421+
1422+
.detail-group .main-groups table td.value span {
1423+
width: 355px;
1424+
}
1425+
1426+
.panel.always-maximized .detail-group .main-groups table td.value span {
1427+
width: 565px;
1428+
}
1429+
14141430
.detail-group.head table td.name {
14151431
padding: 20px 0px 17px;
14161432
}

ui/scripts/ui/widgets/detailView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@
668668

669669
var $detail = $('<tr></tr>').addClass(key).appendTo($detailTable);
670670
var $name = $('<td></td>').addClass('name').appendTo($detail);
671-
var $value = $('<td></td>').addClass('value').appendTo($detail);
671+
var $value = $('<span>').appendTo($('<td></td>').addClass('value').appendTo($detail));
672672
var content = data[key];
673673

674674
if (this.converter) content = this.converter(content);

0 commit comments

Comments
 (0)