new icon changes

This commit is contained in:
Giga Chubinidze 2023-08-09 04:19:57 +04:00
parent 6d4b2c9a9e
commit 73e35994d5
4 changed files with 4 additions and 8 deletions

View file

@ -5,7 +5,7 @@ $.fn.dataTable.render.RepositoryAssetValue = function(data) {
if (asset.id) {
return `
<div class="asset-value-cell">
${asset.icon_html}
<i class="sn-icon sn-icon-${asset.icon_html}"></i>
<div>
<a class="file-preview-link"
id="modal_link${asset.id}"

View file

@ -85,10 +85,6 @@
display: none;
}
}
#wopi_file_edit_button {
margin-left: -8px;
}
}
.add-file-modal {

View file

@ -12,7 +12,7 @@ module RepositoryDatatable
url: rails_blob_path(asset.file, disposition: 'attachment'),
preview_url: asset_file_preview_path(asset),
file_name: escape_input(asset.file_name),
icon_html: FileIconsHelper.file_extension_icon_html(asset)
icon_html: FileIconsHelper.sn_icon_for(asset)
}
rescue StandardError => e
Rails.logger.error e.message

View file

@ -3,7 +3,7 @@
id: 'wopi_file_edit_button',
class: 'btn btn-light',
target: '_blank' do %>
<%= file_application_icon(asset) %>
<i class="sn-icon sn-icon-<%= sn_icon_for(asset) %>"></i>
<%= wopi_button_text(asset, 'edit') %>
<% end %>
<% else %>
@ -13,7 +13,7 @@
target: '_blank',
title: title,
disabled: true do %>
<%= file_application_icon(asset) %>
<i class="sn-icon sn-icon-<%= sn_icon_for(asset) %>"></i>
<%= wopi_button_text(asset, 'edit') %>
<% end %>
<% end %>