Introduce relaxed, regular and condensed button for specify height

This commit is contained in:
Jean-Baptiste Bellet
2023-08-16 11:27:00 +02:00
parent 5de0d79ca2
commit f5e7738c78
5 changed files with 20 additions and 14 deletions

View File

@@ -10,4 +10,4 @@
= select_tag :category_id, options_for_select(category_options, category_id), include_blank: t('.all_categories'), "data-controller": "tom-select", "data-tom-select-options-value": '{ "plugins": [] }', class: "fullwidth"
.submit
.search-button
= button_tag t(".search"), class: "secondary icon-search"
= button_tag t(".search"), class: "secondary icon-search relaxed"

View File

@@ -2,7 +2,7 @@
%div
= t(".pagination.total_html", total: pagy.count, from: pagy.from, to: pagy.to)
- if search_term.present? || producer_id.present? || category_id.present?
%a{ href: "#", class: "button disruptive medium", data: { reflex: "click->products#clear_search" } }
%a{ href: "#", class: "button disruptive condensed", data: { reflex: "click->products#clear_search" } }
= t(".pagination.clear_search")
%div.with-dropdown
= t(".pagination.per_page.show")