mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
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:
commit
8be50c399a
5 changed files with 7 additions and 7 deletions
|
@ -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>
|
||||
`);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue