From 364a21f1034f00c685f64504f4df8594077a7797 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Mon, 27 Jun 2022 18:03:38 +0200 Subject: [PATCH] Fix timeline --- .../blocks/templates/timeline/_edit.html.erb | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/app/views/admin/communication/blocks/templates/timeline/_edit.html.erb b/app/views/admin/communication/blocks/templates/timeline/_edit.html.erb index bb5b0bb78..5d3951c2f 100644 --- a/app/views/admin/communication/blocks/templates/timeline/_edit.html.erb +++ b/app/views/admin/communication/blocks/templates/timeline/_edit.html.erb @@ -3,27 +3,29 @@ <draggable :list="data.elements" handle=".dragHandle" class="list-group"> <div v-for="(element, index) in data.elements" class="list-group-item"> - <div class="flex-fill"> - <div class="row mb-n3"> - <div class="col-lg-1"> - <a class="btn ps-0 pt-0 dragHandle"> - <i class="fa fa-bars handle"></i> - </a> - </div> - <div class="col-lg-4"> - <%= block_component_edit :title, template: @element %> - </div> - <div class="col-lg-6"> - <%= block_component_edit :text, template: @element %> - </div> - <div class="col-lg-1"> - <a class="btn btn-sm btn-danger ms-3" - v-on:click="data.elements.splice(data.elements.indexOf(element), 1)" - title="<%= t '.remove_event' %>"> - <i class="fas fa-times"></i> - </a> + <div class="d-flex"> + <div> + <a class="btn ps-0 pt-0 dragHandle"> + <i class="fa fa-bars handle"></i> + </a> + </div> + <div class="flex-fill"> + <div class="row mb-n3"> + <div class="col-lg-5"> + <%= block_component_edit :title, template: @element %> + </div> + <div class="col-lg-7"> + <%= block_component_edit :text, template: @element %> + </div> </div> </div> + <div> + <a class="btn btn-sm btn-danger ms-3" + v-on:click="data.elements.splice(data.elements.indexOf(element), 1)" + title="<%= t '.remove_event' %>"> + <i class="fas fa-times"></i> + </a> + </div> </div> </div> </draggable> \ No newline at end of file -- GitLab