Merge pull request #6915 from lasniscinote/gl_SCI_9942

(fix) Wide code sample on a shared task [SCI-9942_v2]
This commit is contained in:
Martin Artnik 2024-01-09 13:34:04 +01:00 committed by GitHub
commit 8be50c399a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@
if ($(table).parent().hasClass('table-wrapper')) return;
$(table).wrap(`
<div class="table-wrapper" style="overflow: auto; width: ${$($(rtf)[0]).parent().width()}px"></div>
<div class="table-wrapper w-full" style="overflow: auto;"></div>
`);
}
}

View file

@ -30,11 +30,11 @@
</head>
<body id="sci-shareable-links" data-datetime-picker-format="YYYY-MM-DD">
<div class="flex shareable-links">
<div class="sticky top-0 w-80 h-screen px-6 py-6 flex flex-col
border-0 border-r border-solid border-sn-sleepy-grey">
<div class="sticky top-0 h-screen px-6 py-6 flex flex-col
border-0 border-r border-solid border-sn-sleepy-grey w-[15vw]">
<%= render "shareable_links/my_modules/left_navigation" %>
</div>
<div class="flex flex-col flex-1 min-h-screen p-4 bg-sn-super-light-grey">
<div class="flex flex-col flex-1 min-h-screen p-4 bg-sn-super-light-grey w-[85vw]">
<%= yield %>
</div>
</div>

View file

@ -46,7 +46,7 @@
<div class="task-notes">
<div class="task-notes-content">
<% if @my_module.description.present? %>
<div class="rtf-view overflow-auto w-full max-w-[54rem]">
<div class="rtf-view overflow-auto w-full">
<%= smart_annotation_text(@my_module.shareable_tinymce_render(:description)) %>
</div>
<% else %>

View file

@ -42,7 +42,7 @@
<div>
<div id="protocol-description-container" >
<% if protocol.description.present? %>
<div class="rtf-view overflow-auto w-full max-w-[54rem]">
<div class="rtf-view overflow-auto w-full">
<%= smart_annotation_text(protocol.shareable_tinymce_render(:description)) %>
</div>
<% else %>

View file

@ -8,7 +8,7 @@
</div>
<% end %>
<% if element.text.present? %>
<div class="rtf-view rounded min-h-[2.25rem] mb-4 relative group/text_container content__text-body overflow-auto w-full max-w-[54rem]">
<div class="rtf-view rounded min-h-[2.25rem] mb-4 relative group/text_container content__text-body overflow-auto w-full">
<%= smart_annotation_text(element.shareable_tinymce_render(:text)) %>
</div>
<% else %>