mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Min pagination size
Tweaked job page to make the minimum aware of taller rows as the width of the viewport shrinks.
This commit is contained in:
parent
1776bb3c8e
commit
d3cd99bdfc
@ -216,7 +216,11 @@ function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, C
|
||||
if (docw > 1200) {
|
||||
// customize the container height and # of rows based on available viewport height
|
||||
available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - 80;
|
||||
available_height = (available_height < 550) ? 550 : available_height;
|
||||
if (docw < 1350) {
|
||||
available_height = (available_height < 800) ? 800 : available_height;
|
||||
} else {
|
||||
available_height = (available_height < 550) ? 550 : available_height;
|
||||
}
|
||||
$log.debug('available_height: ' + available_height);
|
||||
$('.jobs-list-container').each(function() {
|
||||
$(this).height(Math.floor(available_height / 2));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user