mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
adds non breaking space between file name and buttons
This commit is contained in:
parent
df2abe5d17
commit
b821fff4a5
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
module WopiHelper
|
module WopiHelper
|
||||||
#include FileIconsHelper
|
|
||||||
def wopi_result_view_file_button(result)
|
def wopi_result_view_file_button(result)
|
||||||
if result.asset.can_perform_action('view')
|
if result.asset.can_perform_action('view')
|
||||||
link_to view_asset_url(id: result.asset),
|
link_to view_asset_url(id: result.asset),
|
||||||
|
@ -57,7 +56,7 @@ module WopiHelper
|
||||||
html += "#{file_extension_icon(asset)} "
|
html += "#{file_extension_icon(asset)} "
|
||||||
html += truncate(asset.file_file_name,
|
html += truncate(asset.file_file_name,
|
||||||
length: Constants::FILENAME_TRUNCATION_LENGTH)
|
length: Constants::FILENAME_TRUNCATION_LENGTH)
|
||||||
html += '</p>'
|
html += ' </p>'
|
||||||
sanitize_input(html, %w(img))
|
sanitize_input(html, %w(img))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue