Merge pull request #3255 from betagouv/fix-send-button
Messagerie : corrige l'affichage du bouton "Envoyer" sur mobile
This commit is contained in:
commit
d9acc47562
3 changed files with 7 additions and 3 deletions
|
@ -24,4 +24,8 @@
|
|||
&.justify-start {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
&.wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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é')
|
||||
|
|
Loading…
Reference in a new issue