Skip to content

Commit

Permalink
Merge pull request #5093 from avalonmediasystem/fix_filename_expand
Browse files Browse the repository at this point in the history
Fix bug for expanding filename and hover text
  • Loading branch information
cjcolvar authored Mar 7, 2023
2 parents 7696f56 + 2ae2317 commit 204f330
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/media_objects/_file_upload.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Unless required by applicable law or agreed to in writing, software distributed
<% end %>
</span>
<% filename = section.title || File.basename(section.file_location.to_s) %>
<span class="mediaobject-filename" id= <%= "truncated_#{section.id}" %> title=<%= filename %>>
<%= section.title || truncate_center(File.basename(section.file_location.to_s), 30, 10) %>
<span class="mediaobject-filename" id= <%= "truncated_#{section.id}" %> title="<%= filename %>">
<%= truncate_center(filename, 30, 10) %>
</span>
<span class="mediaobject-filename" id= <%= "full_#{section.id}" %> style="display: none;" title=<%= filename %>>
<span class="mediaobject-filename" id= <%= "full_#{section.id}" %> style="display: none;" title="<%= filename %>">
<%= filename %>
</span>
<span><%= number_to_human_size(section.file_size) %></span>
Expand Down

0 comments on commit 204f330

Please sign in to comment.