Skip to content

Commit f930ccd

Browse files
committed
Multiselect: Fix size and alignment on select column
1 parent b4b34ed commit f930ccd

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

ui/css/cloudstack3.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,23 @@ table tbody td.truncated > span {
173173
text-overflow: ellipsis;
174174
}
175175

176+
/** Multiselect*/
177+
table thead th.multiselect,
178+
table tbody td.multiselect {
179+
width: 40px;
180+
min-width: 40px;
181+
max-width: 40px;
182+
}
183+
184+
table thead th.multiselect input,
185+
table tbody td.multiselect input {
186+
margin: 0;
187+
}
188+
189+
table thead th.multiselect input {
190+
margin-left: 2px;
191+
}
192+
176193
/** Actions table cell*/
177194
table tbody td.actions {
178195
width: 130px;

ui/scripts/ui/widgets/listView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@
767767
hiddenFields = preFilter();
768768

769769
if (multiSelect) {
770-
var $th = $('<th>').appendTo($thead.find('tr'));
770+
var $th = $('<th>').addClass('multiselect').appendTo($thead.find('tr'));
771771
var content = $('<input>')
772772
.attr('type', 'checkbox')
773773
.addClass('multiSelectMasterCheckbox')
@@ -1054,7 +1054,8 @@
10541054

10551055
if (multiSelect) {
10561056
var $td = $('<td>')
1057-
.appendTo($tr);
1057+
.addClass('multiselect')
1058+
.appendTo($tr);
10581059
var content = $('<input>')
10591060
.attr('type', 'checkbox')
10601061
.addClass('multiSelectCheckbox')

0 commit comments

Comments
 (0)