From e940bf8c0e1f1b78b9ecdc589e190d8b59e04d83 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 22 Nov 2022 13:08:56 +0100 Subject: [PATCH] Small canvas edit mode changes [SCI-7387] --- app/assets/stylesheets/experiment/canvas.scss | 2 +- app/assets/stylesheets/projects.scss | 3 +-- app/views/canvas/_edit.html.erb | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/experiment/canvas.scss b/app/assets/stylesheets/experiment/canvas.scss index 45732d18c..3106db851 100644 --- a/app/assets/stylesheets/experiment/canvas.scss +++ b/app/assets/stylesheets/experiment/canvas.scss @@ -42,7 +42,7 @@ } #canvas-container { - margin: 10px -28px 0; + margin: 0 -28px; } .canvas-preview-img, diff --git a/app/assets/stylesheets/projects.scss b/app/assets/stylesheets/projects.scss index 61eca68f7..e02dc0e0b 100644 --- a/app/assets/stylesheets/projects.scss +++ b/app/assets/stylesheets/projects.scss @@ -48,9 +48,8 @@ $color-module-hover: $brand-primary; } #update-canvas { - .canvas-header { - margin-bottom: 5px; + padding: 1em 2em; } } diff --git a/app/views/canvas/_edit.html.erb b/app/views/canvas/_edit.html.erb index 8475cd812..72a31b0ef 100644 --- a/app/views/canvas/_edit.html.erb +++ b/app/views/canvas/_edit.html.erb @@ -12,11 +12,10 @@ <% if @experiment_managable %> <%=link_to "", type: "button", class: "btn btn-primary", id: "canvas-new-module" do %> - + <%= t("experiments.canvas.edit.new_module") %> - <%= t("experiments.canvas.edit.new_module") %>