mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 06:04:35 +08:00
Fix long result names in PDF reports [SCI-6978]
This commit is contained in:
parent
47b426539f
commit
fcd0de80ca
4 changed files with 4 additions and 11 deletions
|
@ -339,11 +339,6 @@ label {
|
|||
|
||||
.report-element-header {
|
||||
border-bottom: none;
|
||||
height: 0;
|
||||
|
||||
.result-name-container {
|
||||
max-width: 570px;
|
||||
}
|
||||
|
||||
.result-icon {
|
||||
display: inline-block;
|
||||
|
@ -351,8 +346,8 @@ label {
|
|||
|
||||
.result-name {
|
||||
@include font-main;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.user-time {
|
||||
|
|
|
@ -195,7 +195,6 @@ div.print-report {
|
|||
.result-name,
|
||||
.file-name{
|
||||
color: $color-black !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -208,7 +207,6 @@ div.print-report {
|
|||
.result-name,
|
||||
.file-name {
|
||||
color: $color-black !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<% timestamp = table.created_at %>
|
||||
<% name = result.name %>
|
||||
<% export_all = defined?(export_all) && export_all %>
|
||||
<div class="report-element report-result-element report-result-text-element">
|
||||
<div class="report-element report-result-element report-result-table-element">
|
||||
<div class="report-element-header">
|
||||
<div class="result-name">
|
||||
<%= name %>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<div class="user-time">
|
||||
<%= t('projects.reports.elements.result_table.user_time', user: result.user.full_name, timestamp: l(timestamp, format: :full)) %>
|
||||
</div>
|
||||
</div><br>
|
||||
</div>
|
||||
<div class="report-element-body">
|
||||
<input type="hidden" class="hot-table-contents" value="<%= table.contents_utf_8 %>" />
|
||||
<div class="hot-table-container"></div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="user-time">
|
||||
<%= t('projects.reports.elements.result_text.user_time', user: result.user.full_name, timestamp: l(timestamp, format: :full)) %>
|
||||
</div>
|
||||
</div><br>
|
||||
</div>
|
||||
<div class="report-element-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
|
Loading…
Add table
Reference in a new issue