Change clients/jobs facets to always right-align

This changes the templates so the element that contains
the search box is always present, instead hiding only
the box itself when there’s nothing to search. Keeping
the empty element lets it take up its flexbox space so
the facets will no longer be in the centre.
This commit is contained in:
Buck Doyle
2019-05-15 13:25:30 -05:00
parent 4e3468babd
commit 3782919a48
2 changed files with 8 additions and 8 deletions

View File

@@ -3,14 +3,14 @@
{{partial "partials/forbidden-message"}}
{{else}}
<div class="toolbar">
{{#if nodes.length}}
<div class="toolbar-item">
<div class="toolbar-item">
{{#if nodes.length}}
{{search-box
searchTerm=(mut searchTerm)
onChange=(action resetPagination)
placeholder="Search clients..."}}
</div>
{{/if}}
{{/if}}
</div>
<div class="toolbar-item is-right-aligned is-mobile-full-width">
<div class="button-bar">
{{multi-select-dropdown

View File

@@ -3,15 +3,15 @@
{{partial "partials/forbidden-message"}}
{{else}}
<div class="toolbar">
{{#if visibleJobs.length}}
<div class="toolbar-item">
<div class="toolbar-item">
{{#if visibleJobs.length}}
{{search-box
data-test-jobs-search
searchTerm=(mut searchTerm)
onChange=(action resetPagination)
placeholder="Search jobs..."}}
</div>
{{/if}}
{{/if}}
</div>
{{#if (media "isMobile")}}
<div class="toolbar-item is-right-aligned">
{{#link-to "jobs.run" data-test-run-job class="button is-primary"}}Run Job{{/link-to}}