Make form actions float over sort controls.

This commit is contained in:
David Cook
2023-09-13 15:51:09 +10:00
parent 15f7a8299b
commit e047f49998
2 changed files with 14 additions and 2 deletions

View File

@@ -7,10 +7,10 @@
category_options: category_options,
category_id: category_id }
- if products.any?
.container
.container.results
.sixteen.columns
= render partial: 'sort', locals: { pagy: pagy, search_term: search_term, producer_id: producer_id, category_id: category_id }
= render partial: 'table', locals: { products: products }
= render partial: 'table', locals: { products: products }
- if pagy.pages > 1
= render partial: 'admin/shared/v3/pagy', locals: { pagy: pagy, reflex: "click->Products#fetch" }
- else

View File

@@ -15,6 +15,18 @@
padding: 0;
}
.results {
position: relative;
}
// Form actions floats over other controls when active
.form-actions {
position: absolute;
top: 1em;
left: 0;
right: 0;
}
// Hopefully these rules will be moved to component(s).
table.products {
table-layout: fixed; // Column widths are based solely on col definitions (not content). This allows more efficient rendering.