mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02:30
Added custom scroll bar to inventory groups container. Moved group container auto-resize and height calc function to helper methods. Now using full window height, pushing footer off the page. Changed custom sroll directive to use the dark-thin theme.
This commit is contained in:
@@ -14,18 +14,18 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis
|
||||
'InventoryHelper', 'InventoryFormDefinition', 'ParseHelper', 'SearchHelper', 'VariablesHelper',
|
||||
])
|
||||
|
||||
.factory('GetContainerHeight', [ function() {
|
||||
.factory('GetGroupContainerHeight', [ function() {
|
||||
return function() {
|
||||
return $(window).height() - $('.main-menu').outerHeight() - $('#main_tabs').outerHeight() - $('#breadcrumbs').outerHeight() -
|
||||
$('.site-footer').outerHeight() - $('#groups-container .list-actions').outerHeight() - $('#groups-table-header').height() - 15;
|
||||
};
|
||||
}])
|
||||
|
||||
.factory('SetGroupContainerHeight', [ 'GetContainerHeight', function(GetContainerHeight) {
|
||||
.factory('SetGroupContainerHeight', [ 'GetGroupContainerHeight', function(GetGroupContainerHeight) {
|
||||
return function() {
|
||||
var height;
|
||||
if ($(window).width() > 1210) {
|
||||
height = GetContainerHeight();
|
||||
height = GetGroupContainerHeight();
|
||||
$('#groups-container .list-table-container').height(height);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1332,6 +1332,9 @@ input[type="checkbox"].checkbox-no-label {
|
||||
.list-table-container {
|
||||
overflow: auto;
|
||||
}
|
||||
.list-actions {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#inventories_table i[class*="icon-job-"],
|
||||
|
||||
Reference in New Issue
Block a user