Merge pull request #3255 from betagouv/fix-send-button

Messagerie : corrige l'affichage du bouton "Envoyer" sur mobile
This commit is contained in:
Pierre de La Morinerie 2019-01-07 16:35:45 +01:00 committed by GitHub
commit d9acc47562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -24,4 +24,8 @@
&.justify-start {
justify-content: flex-start;
}
&.wrap {
flex-wrap: wrap;
}
}

View file

@ -1,6 +1,6 @@
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
= f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true, class: 'message-textarea'
.flex.justify-between
.flex.justify-between.wrap
%div
= f.file_field :file, id: :file, accept: commentaire.file.accept_extension_list
%label{ for: :file }
@ -8,4 +8,4 @@
(taille max : 20 Mo)
%div
= f.submit 'Envoyer', class: 'button primary send', data: { disable: true }
= f.submit 'Envoyer le message', class: 'button primary send', data: { disable: true }

View file

@ -31,7 +31,7 @@ RSpec.shared_examples 'the user can send messages to the instructeur' do
expect(page).to have_content(commentaire.body)
fill_in 'commentaire_body', with: message_body
click_on 'Envoyer'
click_on 'Envoyer le message'
expect(page).to have_current_path(messagerie_dossier_path(dossier))
expect(page).to have_content('Message envoyé')