Skip to content

Commit 5335ae7

Browse files
committed
List view, dialog VM select: Widen name field to better fit IP subselect box
1 parent 9c4de76 commit 5335ae7

2 files changed

Lines changed: 53 additions & 27 deletions

File tree

ui/css/cloudstack3.css

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

176+
.list-view-select table th.name,
177+
.list-view-select table td.name {
178+
width: 170px;
179+
}
180+
176181
/** Multiselect*/
177182
table thead th.multiselect,
178183
table tbody td.multiselect {
@@ -210,6 +215,23 @@ table tbody td.actions input {
210215
margin: 11px 0 0px;
211216
}
212217

218+
.list-view-select table tbody td.actions {
219+
width: 40px !important;
220+
min-width: 40px !important;
221+
max-width: 40px !important;
222+
}
223+
224+
.list-view-select table tbody td.actions input {
225+
margin: 0 0 0 -7px;
226+
}
227+
228+
.list-view-select table thead th.actions {
229+
width: 40px !important;
230+
min-width: 40px !important;
231+
max-width: 40px !important;
232+
text-indent: 5px;
233+
}
234+
213235
/** Quick view table cell*/
214236
table tbody td.quick-view,
215237
table thead th.quick-view {
@@ -7944,13 +7966,13 @@ div.panel.ui-dialog div.list-view div.fixed-header {
79447966

79457967
/*List-view: subselect dropdown*/
79467968
.list-view .subselect {
7947-
width: 102px;
7969+
width: 173px;
79487970
cursor: default;
79497971
display: block;
79507972
float: left;
7951-
background: #EFEFEF;
7973+
background: #E8E8E8;
79527974
padding: 0;
7953-
margin: 8px 0 1px 7px;
7975+
margin: 0 0 0 -3px;
79547976
clear: both;
79557977
border: 1px solid #A8A7A7;
79567978
/*+border-radius:2px;*/
@@ -7978,8 +8000,8 @@ div.panel.ui-dialog div.list-view div.fixed-header {
79788000
}
79798001

79808002
.list-view .subselect select {
7981-
width: 85%;
7982-
margin: 5px 0 4px;
8003+
width: 175px;
8004+
margin: 0 0 0 -11px;
79838005
font-size: 10px;
79848006
}
79858007

@@ -12908,20 +12930,19 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1290812930
display: inline-block;
1290912931
}
1291012932

12911-
1291212933
/*GPU*/
1291312934
div.gpugroups div.list-view div.fixed-header {
12914-
position: relative;
12915-
left: 12px !important;
12916-
top: 0px !important;
12935+
position: relative;
12936+
left: 12px !important;
12937+
top: 0px !important;
1291712938
}
1291812939

1291912940
div.gpugroups div.list-view div.fixed-header table {
12920-
width: auto;
12941+
width: auto;
1292112942
}
1292212943

1292312944
div.gpugroups div.list-view div.data-table table {
12924-
margin-top: 0;
12945+
margin-top: 0;
1292512946
}
1292612947

1292712948
div.gpugroups div.list-view {
@@ -12932,25 +12953,27 @@ div.gpugroups div.list-view {
1293212953
}
1293312954

1293412955
.gpugroups {
12935-
float: left;
12936-
height: 100%;
12937-
width: 100%;
12938-
overflow-x: hidden;
12939-
overflow-y: auto;
12956+
float: left;
12957+
height: 100%;
12958+
width: 100%;
12959+
overflow-x: hidden;
12960+
overflow-y: auto;
1294012961
}
12962+
1294112963
.gpugroups .gpugroup-container {
12942-
border: 1px solid #C8C2C2;
12943-
border-radius: 3px;
12944-
height: auto !important;
12945-
margin: 12px;
12946-
padding: 0;
12947-
position: relative;
12948-
float: left;
12949-
width: auto;
12964+
border: 1px solid #C8C2C2;
12965+
border-radius: 3px;
12966+
height: auto !important;
12967+
margin: 12px;
12968+
padding: 0;
12969+
position: relative;
12970+
float: left;
12971+
width: auto;
1295012972
}
1295112973

1295212974
.gpugroups .gpugroup-container .title {
12953-
font-size: 13px;
12954-
font-weight: 100;
12955-
padding: 12px 12px 5px;
12975+
font-size: 13px;
12976+
font-weight: 100;
12977+
padding: 12px 12px 5px;
1295612978
}
12979+

ui/scripts/ui/widgets/listView.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@
899899
return true;
900900

901901
if (action.type == 'radio') {
902+
$td.closest('.list-view').addClass('list-view-select');
902903
$td.append(
903904
$('<div></div>')
904905
.addClass('action')
@@ -918,6 +919,7 @@
918919

919920
return true;
920921
} else if (action.type == 'checkbox') {
922+
$td.closest('.list-view').addClass('list-view-select');
921923
$td.append(
922924
$('<div></div>')
923925
.addClass('action')
@@ -1317,6 +1319,7 @@
13171319
var $option = $('<option>');
13181320

13191321
$option.attr('value', item.id);
1322+
$option.attr('title', item.description);
13201323
$option.append(item.description);
13211324
$option.appendTo($select.find('select'));
13221325
});

0 commit comments

Comments
 (0)