mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 21:26:22 +00:00
fix: títulos de los botones de filtro ahora son los nombres legibles por humanes + los botones tienen el nombre y la cruz en la misma fila #16509
This commit is contained in:
parent
b7b046b5b9
commit
7f6730c1e6
2 changed files with 18 additions and 11 deletions
|
@ -683,3 +683,7 @@ a.black {
|
|||
@extend .w-100;
|
||||
@extend .mb-3;
|
||||
}
|
||||
|
||||
.btn-sm-queries {
|
||||
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height, $btn-border-radius-sm);
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
%input{ type: 'hidden',
|
||||
name: values.is_a?(Array) ? "#{param}[]" : param,
|
||||
value: value }
|
||||
.form-group.flex-grow-0.m-0
|
||||
.form-group.flex-grow-0.m-0.mb-1
|
||||
%label.h3{ for: 'q' }= t('posts.index.search')
|
||||
.input-group
|
||||
%input.form-control.border.border-magenta.border-right-0#q{ type: 'search',
|
||||
|
@ -19,14 +19,17 @@
|
|||
%span.input-group-text.background-white.magenta.border.border-magenta.border-top.border-left-0.border-right.border-bottom
|
||||
%i.fa.fa-fw.fa-search
|
||||
%input.sr-only{ type: 'submit' }
|
||||
|
||||
- filter_params.each do |param, values|
|
||||
.d-flex.flex-wrap
|
||||
- [values].flatten.each do |value|
|
||||
- humanized_name = site.layouts[value.to_sym].humanized_name
|
||||
= link_to site_posts_path(site, **filter_params_by(filter_params, param, value)),
|
||||
class: 'btn btn-secondary btn-sm',
|
||||
title: t('posts.remove_filter_help', filter: value),
|
||||
class: 'btn btn-secondary btn-sm-queries',
|
||||
title: humanized_name,
|
||||
aria: { labelledby: "help-filter-#{param}" } do
|
||||
- if param == :layout
|
||||
= site.layouts[value.to_sym].humanized_name
|
||||
%span= humanized_name
|
||||
- else
|
||||
= value
|
||||
×
|
||||
%span ×
|
||||
|
|
Loading…
Reference in a new issue