mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 22:06: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 .w-100;
|
||||||
@extend .mb-3;
|
@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',
|
%input{ type: 'hidden',
|
||||||
name: values.is_a?(Array) ? "#{param}[]" : param,
|
name: values.is_a?(Array) ? "#{param}[]" : param,
|
||||||
value: value }
|
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')
|
%label.h3{ for: 'q' }= t('posts.index.search')
|
||||||
.input-group
|
.input-group
|
||||||
%input.form-control.border.border-magenta.border-right-0#q{ type: 'search',
|
%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
|
%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
|
%i.fa.fa-fw.fa-search
|
||||||
%input.sr-only{ type: 'submit' }
|
%input.sr-only{ type: 'submit' }
|
||||||
|
|
||||||
- filter_params.each do |param, values|
|
- filter_params.each do |param, values|
|
||||||
|
.d-flex.flex-wrap
|
||||||
- [values].flatten.each do |value|
|
- [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)),
|
= link_to site_posts_path(site, **filter_params_by(filter_params, param, value)),
|
||||||
class: 'btn btn-secondary btn-sm',
|
class: 'btn btn-secondary btn-sm-queries',
|
||||||
title: t('posts.remove_filter_help', filter: value),
|
title: humanized_name,
|
||||||
aria: { labelledby: "help-filter-#{param}" } do
|
aria: { labelledby: "help-filter-#{param}" } do
|
||||||
- if param == :layout
|
- if param == :layout
|
||||||
= site.layouts[value.to_sym].humanized_name
|
%span= humanized_name
|
||||||
- else
|
- else
|
||||||
= value
|
= value
|
||||||
×
|
%span ×
|
||||||
|
|
Loading…
Reference in a new issue