From d098fa7131f29e5cc8c8c8cb026e6f0cb690d91a Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 14 Jun 2024 15:58:09 -0300 Subject: [PATCH] fix: cambiaba el padding del details de 'Agregar contenido' al abrirlo #16509 --- app/views/layouts/_details.haml | 2 +- app/views/posts/index.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',