mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +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
|
||||
#include FileIconsHelper
|
||||
def wopi_result_view_file_button(result)
|
||||
if result.asset.can_perform_action('view')
|
||||
link_to view_asset_url(id: result.asset),
|
||||
|
@ -57,7 +56,7 @@ module WopiHelper
|
|||
html += "#{file_extension_icon(asset)} "
|
||||
html += truncate(asset.file_file_name,
|
||||
length: Constants::FILENAME_TRUNCATION_LENGTH)
|
||||
html += '</p>'
|
||||
html += ' </p>'
|
||||
sanitize_input(html, %w(img))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue