diff --git a/app/views/layouts/_details.haml b/app/views/layouts/_details.haml index 5e8d566c..c9442c4a 100644 --- a/app/views/layouts/_details.haml +++ b/app/views/layouts/_details.haml @@ -10,7 +10,7 @@ - local_assigns[:closed] ||= '▶'.html_safe - local_assigns[:open] ||= '▼'.html_safe -%details.details.py-2{ id: local_assigns[:id], +%details.details{ id: local_assigns[:id], data: { controller: 'details', action: 'toggle->details#store' }, class: local_assigns[:details_class] } diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 989e53ee..7b8a5ece 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -34,7 +34,7 @@ %button.btn.btn-secondary.mt-3{ type: 'submit' }= t('posts.filters.submit') = render 'layouts/details', summary: t('posts.new'), - summary_class: 'h4 magenta font-weight-bold m-0 px-2', + summary_class: 'h4 magenta font-weight-bold m-0 px-2 py-2', details_class: 'details-agregar', open: '+', closed: '+', open_class: 'h1 magenta font-weight-bold m-0',