From 8be2a02d9be322b1cc5d79897d5afdfa703c4297 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 15 May 2023 15:38:44 +0200 Subject: [PATCH] Fix my module layout --- .../my_modules/protocols/index.scss | 20 +++++++++---------- app/views/my_modules/protocols.html.erb | 9 ++++----- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss index cfb869659..5b2f8f046 100644 --- a/app/assets/stylesheets/my_modules/protocols/index.scss +++ b/app/assets/stylesheets/my_modules/protocols/index.scss @@ -8,7 +8,15 @@ @import "mixins"; .content-pane.my-modules-protocols-index { - padding: 0 10px 10px; + background-color: $color-alto; + margin-left: calc(-1rem - 2px) !important; + padding: 0 1rem 1rem !important; + width: calc(100% + 2rem); + + .title-row { + margin-left: -1rem !important; + width: calc(100% + 2rem) !important; + } .my-module-position-container { background-color: $color-white; @@ -16,18 +24,8 @@ margin: 1rem auto; max-width: 900px; padding: 10px; - position: relative; z-index: 2; } - - .my-module-background { - background-color: $color-alto; - height: 100%; - left: 0; - position: fixed; - top: 0; - width: 100%; - } } .content-pane.protocols-repository-edit-view { diff --git a/app/views/my_modules/protocols.html.erb b/app/views/my_modules/protocols.html.erb index 0c3ec5263..39e70d74d 100644 --- a/app/views/my_modules/protocols.html.erb +++ b/app/views/my_modules/protocols.html.erb @@ -38,7 +38,6 @@ <% end %> <%= render partial: 'shared/drag_n_drop_overlay' %>
-
<%= render partial: 'my_modules/header' %>
@@ -130,10 +129,10 @@ data-date-format="<%= datetime_picker_format_date_only %>" data-user-utc-offset="<%= ActiveSupport::TimeZone.find_tzinfo(current_user.time_zone).utc_offset %>" > - -
+ +