Inventory manage row height and icon col width

adjusted the heights of the rows for the groups/hosts on the manage view, and made the column width greater for icons on the page too
This commit is contained in:
Jared Tabor
2015-03-12 10:41:43 -04:00
parent 8e91c36593
commit c2b5d27333
3 changed files with 10 additions and 10 deletions

View File

@@ -44,8 +44,8 @@ export default
return function() { return function() {
var height, rows; var height, rows;
height = $('#hosts-container .list-well').height() - $('#hosts-constainer .list-well .row').height() - $('#hosts_table thead').height(); height = $('#hosts-container .list-well').height() - $('#hosts-constainer .list-well .row').height() - $('#hosts_table thead').height();
rows = Math.floor(height / 30) - 2; rows = Math.floor(height / 44) - 2;
rows = (rows < 20) ? 20 : rows; // rows = (rows < 20) ? 20 : rows;
return rows; return rows;
}; };
}]) }])
@@ -54,8 +54,8 @@ export default
return function() { return function() {
var height, rows; var height, rows;
height = $('#groups-container .list-table-container').height(); height = $('#groups-container .list-table-container').height();
rows = Math.floor(height / 31) - 2; rows = Math.floor(height / 44) - 2;
rows = (rows < 20) ? 20 : rows; // rows = (rows < 20) ? 20 : rows;
return rows; return rows;
}; };
}]) }])

View File

@@ -23,7 +23,7 @@ export default
key: true, key: true,
ngClick: "groupSelect(group.id)", ngClick: "groupSelect(group.id)",
columnClick: "groupSelect(group.id)", columnClick: "groupSelect(group.id)",
columnClass: 'col-lg-8 col-md-8 col-sm-8 col-xs-6' columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6'
}, },
source: { source: {
label: 'Source', label: 'Source',
@@ -109,7 +109,7 @@ export default
fieldActions: { fieldActions: {
columnClass: 'col-lg-4 col-md-4 col-sm-4 col-xs-6 text-right', columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6 text-right',
label: false, label: false,
sync_status: { sync_status: {
@@ -169,4 +169,4 @@ export default
dataPlacement: "top" dataPlacement: "top"
} }
} }
}); });

View File

@@ -28,7 +28,7 @@ export default
key: true, key: true,
label: 'Hosts', label: 'Hosts',
ngClick: "editHost(host.id)", ngClick: "editHost(host.id)",
columnClass: 'col-lg-8 col-md-9 col-sm-9 col-xs-7', columnClass: 'col-lg-6 col-md-9 col-sm-9 col-xs-7',
dataHostId: "{{ host.id }}", dataHostId: "{{ host.id }}",
dataType: "host" dataType: "host"
}, },
@@ -50,7 +50,7 @@ export default
fieldActions: { fieldActions: {
columnClass: 'col-lg-4 col-md-3 col-sm-3 col-xs-5 text-right', columnClass: 'col-lg-6 col-md-3 col-sm-3 col-xs-5 text-right',
label: false, label: false,
enabled_flag: { enabled_flag: {
@@ -111,4 +111,4 @@ export default
} }
} }
}); });