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