From 42d91c1eee714eaf11590a68af26f7ea497ac5c3 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Mon, 8 Jan 2024 14:38:59 +0100 Subject: [PATCH] correction from PR reviews --- app/assets/stylesheets/procedure_champs_editor.scss | 1 + .../administrateurs/procedures/_champs_summary.html.haml | 2 +- app/views/administrateurs/procedures/annotations.html.haml | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/procedure_champs_editor.scss b/app/assets/stylesheets/procedure_champs_editor.scss index ab51d9621..6f1db8ac1 100644 --- a/app/assets/stylesheets/procedure_champs_editor.scss +++ b/app/assets/stylesheets/procedure_champs_editor.scss @@ -16,6 +16,7 @@ width: 100%; margin-bottom: $default-padding; overflow: hidden; + scroll-margin: 1em; .type-de-champ-container { width: 100%; diff --git a/app/views/administrateurs/procedures/_champs_summary.html.haml b/app/views/administrateurs/procedures/_champs_summary.html.haml index 0122c479d..2db332926 100644 --- a/app/views/administrateurs/procedures/_champs_summary.html.haml +++ b/app/views/administrateurs/procedures/_champs_summary.html.haml @@ -8,4 +8,4 @@ - if level == 1 %a.fr-sidemenu__link{ href: "##{dom_id(header, :type_de_champ_editor)}" }= header.libelle - else - %a.fr-sidemenu__link{ class: level == 3 ? 'custom-link-grey': '', href: "##{dom_id(header, :type_de_champ_editor)}" }= "-- #{header.libelle}" + %a.fr-sidemenu__link{ class: level >= 3 ? 'custom-link-grey': '', href: "##{dom_id(header, :type_de_champ_editor)}" }= "-- #{header.libelle}" diff --git a/app/views/administrateurs/procedures/annotations.html.haml b/app/views/administrateurs/procedures/annotations.html.haml index a1e00c171..05d198cf6 100644 --- a/app/views/administrateurs/procedures/annotations.html.haml +++ b/app/views/administrateurs/procedures/annotations.html.haml @@ -5,9 +5,10 @@ .fr-container %h1 Configuration des annotations privées - %br = render NestedForms::FormOwnerComponent.new -= render TypesDeChampEditor::EditorComponent.new(revision: @procedure.draft_revision, is_annotation: true) + .fr-grid-row + .fr-col + = render TypesDeChampEditor::EditorComponent.new(revision: @procedure.draft_revision, is_annotation: true) .padded-fixed-footer .fixed-footer