From ceae0aa7425f7b6318feb462713d7ea3c076508d Mon Sep 17 00:00:00 2001 From: Vikas Shashidhar Date: Tue, 26 Sep 2017 12:54:04 +0530 Subject: [PATCH 1/2] Add tooltip to display full filename in download manager. --- js/downloadManager/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/downloadManager/index.js b/js/downloadManager/index.js index bf7ac47e..b4b63538 100644 --- a/js/downloadManager/index.js +++ b/js/downloadManager/index.js @@ -109,6 +109,7 @@ function createDOM(arg) { let h2FileName = document.createElement('h2'); h2FileName.classList.add('text-cutoff'); h2FileName.innerHTML = arg.fileName; + h2FileName.title = arg.fileName; fileNameDiv.appendChild(h2FileName); let fileProgressTitle = document.createElement('span'); From c778a1f7b7d93bdd41b6180d042908defa5adee5 Mon Sep 17 00:00:00 2001 From: Vikas Shashidhar Date: Tue, 26 Sep 2017 16:54:57 +0530 Subject: [PATCH 2/2] Change title to reflect new file display name as per Electron-144 --- js/downloadManager/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/downloadManager/index.js b/js/downloadManager/index.js index b4b63538..058e4e83 100644 --- a/js/downloadManager/index.js +++ b/js/downloadManager/index.js @@ -108,8 +108,8 @@ function createDOM(arg) { let h2FileName = document.createElement('h2'); h2FileName.classList.add('text-cutoff'); - h2FileName.innerHTML = arg.fileName; - h2FileName.title = arg.fileName; + h2FileName.innerHTML = arg.fileDisplayName; + h2FileName.title = arg.fileDisplayName; fileNameDiv.appendChild(h2FileName); let fileProgressTitle = document.createElement('span');