Fix inventory item CSS abd set nonce shared file preview inline JavaScript [SCI-9043]

This commit is contained in:
wandji20 2023-08-15 14:28:53 +01:00
parent acb1a034a8
commit b9e391e781
3 changed files with 8 additions and 1 deletions

View file

@ -717,7 +717,9 @@ var RepositoryDatatable = (function(global) {
}
customColumns.each((i, column) => {
var columnData = $(column).data('type') === 'RepositoryStockValue' ? 'stock' : String(columns.length);
const className = $(column).data('type') === 'RepositoryChecklistValue' ? 'checklist-column' : '';
columns.push({
className: className,
visible: true,
searchable: true,
data: columnData,

View file

@ -90,6 +90,7 @@
// Assigned
.assigned-column {
overflow: unset;
padding: 1px 8px;
position: relative;
@ -170,6 +171,10 @@
}
}
.checklist-column {
overflow: unset;
}
.item-name {
padding: 2px 8px;

View file

@ -104,4 +104,4 @@
<% end %>
</div>
<%= javascript_include_tag 'shared/file_preview' %>
<%= javascript_include_tag 'shared/file_preview', nonce: true %>