mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Make form actions float over sort controls.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user