From 2ae231710d7b05aaf982b2e5a5bf079ae65445f2 Mon Sep 17 00:00:00 2001 From: Mason Ballengee Date: Thu, 2 Mar 2023 14:42:01 -0500 Subject: [PATCH] Fix bug for expanding filename and hover text --- app/views/media_objects/_file_upload.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/media_objects/_file_upload.html.erb b/app/views/media_objects/_file_upload.html.erb index 36005022bb..ba12f32374 100644 --- a/app/views/media_objects/_file_upload.html.erb +++ b/app/views/media_objects/_file_upload.html.erb @@ -60,10 +60,10 @@ Unless required by applicable law or agreed to in writing, software distributed <% end %> <% filename = section.title || File.basename(section.file_location.to_s) %> - title=<%= filename %>> - <%= section.title || truncate_center(File.basename(section.file_location.to_s), 30, 10) %> + title="<%= filename %>"> + <%= truncate_center(filename, 30, 10) %> - style="display: none;" title=<%= filename %>> + style="display: none;" title="<%= filename %>"> <%= filename %> <%= number_to_human_size(section.file_size) %>