mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Update shared tasks with new native tables helper [SCI-11245]
This commit is contained in:
parent
d1c918b68f
commit
80dbe54b60
5 changed files with 56 additions and 4 deletions
|
@ -15,3 +15,49 @@
|
|||
border-color: var(--sn-light-grey) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.common-table-format {
|
||||
page-break-inside: avoid;
|
||||
width: 100%;
|
||||
|
||||
tr {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
|
||||
td,
|
||||
th {
|
||||
border: 1px solid $color-silver;
|
||||
padding: 5px;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
min-height: 19px;
|
||||
}
|
||||
|
||||
&.htCenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.htRight {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.htJustify {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
&.htMiddle {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.htBottom {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
th {
|
||||
background: $color-concrete;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,3 +89,4 @@
|
|||
<%= render 'shared/formulas_libraries' %>
|
||||
<%= javascript_include_tag 'shareable_links/my_module_protocol_show' %>
|
||||
<%= javascript_include_tag 'shareable_links/repositories' %>
|
||||
<%= javascript_include_tag 'vue_legacy_report_table' %>
|
||||
|
|
|
@ -54,3 +54,4 @@
|
|||
<%= javascript_include_tag 'shared/file_preview' %>
|
||||
<%= javascript_include_tag 'pdf_js' %>
|
||||
<%= stylesheet_link_tag 'pdf_js_styles' %>
|
||||
<%= javascript_include_tag 'vue_legacy_report_table' %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="block pl-2 pb-6 object-contain border-0 border-b border-solid border-sn-light-grey">
|
||||
<%= image_tag "scinote_logo.svg" %>
|
||||
<%= image_tag "scinote_logo.svg", class: "w-full" %>
|
||||
</div>
|
||||
<h3 class="my-4">
|
||||
<%= t("shareable_links.left_navigation.welcome")%>
|
||||
|
|
|
@ -8,8 +8,12 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<div class="table-body group/table-body relative border-solid border-transparent view locked" tabindex="0">
|
||||
<input type="hidden" class="hot-table-contents" value="<%= element.contents_utf_8 %>" />
|
||||
<input type="hidden" class="hot-table-metadata" value="<%= element.metadata.to_json %>" />
|
||||
<div class="hot-table-container"></div>
|
||||
<div class="report-native-table common-table-format" id="native-table-<%= element.id %>">
|
||||
<native-table-renderer
|
||||
:contents="<%= element.contents %>"
|
||||
:metadata="<%= element.metadata.to_json %>"
|
||||
>
|
||||
</native-table-renderer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue