From fb392d87c98bbf91c30d0fa8553a2ab3ebd4362a Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 15 Dec 2017 14:42:41 +0100 Subject: [PATCH] Improve the style of the messagerie form Reduce the space between the messages and the new message textarea --- app/assets/stylesheets/new_design/messagerie.scss | 4 ++++ .../new_gestionnaire/shared/commentaires/_form.html.haml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/new_design/messagerie.scss b/app/assets/stylesheets/new_design/messagerie.scss index 602997785..6bf1dc245 100644 --- a/app/assets/stylesheets/new_design/messagerie.scss +++ b/app/assets/stylesheets/new_design/messagerie.scss @@ -52,4 +52,8 @@ .attachment-link { margin-top: $default-spacer; } + + .commentaire-textarea { + margin-bottom: $default-spacer; + } } diff --git a/app/views/new_gestionnaire/shared/commentaires/_form.html.haml b/app/views/new_gestionnaire/shared/commentaires/_form.html.haml index 977aca4c7..7a50b09c5 100644 --- a/app/views/new_gestionnaire/shared/commentaires/_form.html.haml +++ b/app/views/new_gestionnaire/shared/commentaires/_form.html.haml @@ -1,5 +1,5 @@ = form_for(commentaire, url: form_url, html: { class: 'form' }) do |f| - = f.text_area :body, rows: 5, placeholder: 'RĂ©pondre ici', required: true + = f.text_area :body, rows: 5, placeholder: 'RĂ©pondre ici', required: true, class: 'commentaire-textarea' .flex.justify-between %div = f.file_field :file, id: :file, accept: commentaire.file.accept_extension_list