Merge pull request #5405 from aignatov-bio/ai-sci-fix-my-module-layout

Fix my module layout
This commit is contained in:
aignatov-bio 2023-05-15 18:03:04 +02:00 committed by GitHub
commit 582c83d454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 16 deletions

View file

@ -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 {

View file

@ -38,7 +38,6 @@
<% end %>
<%= render partial: 'shared/drag_n_drop_overlay' %>
<div class="content-pane flexible my-modules-protocols-index" data-task-id="<%= @my_module.id %>">
<div class="my-module-background"></div>
<%= render partial: 'my_modules/header' %>
<div class="my-module-position-container">
<!-- Details -->
@ -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 %>"
>
<protocol-container
:protocol-url="protocolUrl"
/>
</div>
<protocol-container
:protocol-url="protocolUrl"
/>
</div>
</div>
</div>
</div>