From da9f76a5384f0dd5a304932b0395b6f868933554 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 27 Jun 2023 17:32:22 +0200 Subject: [PATCH] style(demande): improve margins between info generates parts --- .../shared/dossiers/_infos_generales.html.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/shared/dossiers/_infos_generales.html.haml b/app/views/shared/dossiers/_infos_generales.html.haml index 6ec9aedbd..e52e1a012 100644 --- a/app/views/shared/dossiers/_infos_generales.html.haml +++ b/app/views/shared/dossiers/_infos_generales.html.haml @@ -1,5 +1,5 @@ -%div - %p.fr-my-2w.fr-px-4v +.fr-px-2w + %p.fr-my-2w = t(:submitted_at, scope: [:views, :shared, :dossiers, :form], datetime: l(dossier.depose_at)) %br - if dossier.last_champ_updated_at.present? && dossier.last_champ_updated_at > dossier.depose_at @@ -7,22 +7,23 @@ - if dossier.justificatif_motivation.attached? - .fr-my-4v.fr-px-4v + -# download component already has margin bottom + %div %p.champ-label Justificatif : - .champ-content.fr-text-action-high--grey + .champ-content .action = render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment) - if dossier.motivation.present? - .fr-my-4v.fr-px-4v + .fr-mb-2w %p.champ-label Motivation : - .champ-content.fr-text-action-high--grey + .champ-content .action = dossier.motivation - if dossier.attestation.present? - .fr-my-4v.fr-px-4v + .fr-mb-2w %p.champ-label Attestation : - .champ-content.fr-text-action-high--grey + .champ-content .action = link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')