mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Fixed search drop-down not showing up on Jobs page for small and medium viewports.
This commit is contained in:
parent
dda9cbda2d
commit
68eb8a67bc
@ -362,7 +362,8 @@ angular.module('JobsHelper', ['Utilities', 'RestServices', 'FormGenerator', 'Job
|
||||
id: id,
|
||||
breadCrumbs: false,
|
||||
scope: scope,
|
||||
searchSize: 'col-lg-4 col-md-6 col-sm-12 col-xs-12',
|
||||
searchSize: 'col-lg-4 col-md-6',
|
||||
listSize: 'col-lg-8 col-md-6',
|
||||
showSearch: true
|
||||
});
|
||||
|
||||
|
||||
@ -214,11 +214,13 @@ angular.module('ListGenerator', ['GeneratorHelpers'])
|
||||
html += "<div class=\"";
|
||||
if (list.name === 'groups') {
|
||||
html += "col-lg-12";
|
||||
} else if (options.searchSize) {
|
||||
} else if (options.searchSize && !options.listSize) {
|
||||
// User supplied searchSize, calc the remaining
|
||||
size = parseInt(options.searchSize.replace(/([A-Z]|[a-z]|\-)/g, ''));
|
||||
size = (list.searchWidgets) ? list.searchWidgets * size : size;
|
||||
html += 'col-lg-' + (12 - size);
|
||||
} else if (options.listSize) {
|
||||
html += options.listSize;
|
||||
} else if (options.mode === 'summary') {
|
||||
html += 'col-lg-6';
|
||||
} else if (options.id !== undefined) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user