From cb45d0aa6c5d198927f924923249c85de096bb7f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 17 Jun 2024 11:10:27 -0300 Subject: [PATCH] fix: distinguir mejor los valores elegidos --- app/views/posts/_new_array_value.haml | 4 +--- app/views/posts/attributes/_new_array.haml | 2 +- app/views/posts/attributes/_new_predefined_array.haml | 2 +- app/views/posts/attributes/_new_predefined_value.haml | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/posts/_new_array_value.haml b/app/views/posts/_new_array_value.haml index 00cf293f..73bea5dc 100644 --- a/app/views/posts/_new_array_value.haml +++ b/app/views/posts/_new_array_value.haml @@ -1,3 +1 @@ -.col - %p - %strong= value +%li= value diff --git a/app/views/posts/attributes/_new_array.haml b/app/views/posts/attributes/_new_array.haml index da4a93c7..d0d659dd 100644 --- a/app/views/posts/attributes/_new_array.haml +++ b/app/views/posts/attributes/_new_array.haml @@ -26,7 +26,7 @@ Para poder cancelar, mantenemos el estado original y desactivamos o activamos los ítemes según estén incluidos en esa lista o no. - .row.row-cols-1.row-cols-md-2.no-gutters.placeholder-glow{ data: { target: 'array.current' } } + %ul.placeholder-glow{ data: { target: 'array.current' } } - metadata.value.sort_by(&:remove_diacritics).each do |value| = render 'posts/new_array_value', value: value diff --git a/app/views/posts/attributes/_new_predefined_array.haml b/app/views/posts/attributes/_new_predefined_array.haml index c67b2ea9..ca0cdaf2 100644 --- a/app/views/posts/attributes/_new_predefined_array.haml +++ b/app/views/posts/attributes/_new_predefined_array.haml @@ -29,7 +29,7 @@ Para poder cancelar, mantenemos el estado original y desactivamos o activamos los ítemes según estén incluidos en esa lista o no. - .row.row-cols-1.row-cols-md-2.no-gutters.placeholder-glow{ data: { target: 'array.current' } } + %ul.placeholder-glow{ data: { target: 'array.current' } } - metadata.values.slice(*metadata.value).each_key do |value| = render 'posts/new_array_value', value: value diff --git a/app/views/posts/attributes/_new_predefined_value.haml b/app/views/posts/attributes/_new_predefined_value.haml index 7f418472..ae04fd0b 100644 --- a/app/views/posts/attributes/_new_predefined_value.haml +++ b/app/views/posts/attributes/_new_predefined_value.haml @@ -40,7 +40,7 @@ Para poder cancelar, mantenemos el estado original y desactivamos o activamos los ítemes según estén incluidos en esa lista o no. - .row.row-cols-3.row-cols-md-4.no-gutters.placeholder-glow{ data: { target: 'array.current' } } + %ul.placeholder-glow{ data: { target: 'array.current' } } - unless metadata.empty? = render 'posts/new_array_value', value: metadata.to_s