fix(download-history): use title for downloaded tooltip

This commit is contained in:
Will Miao
2026-04-13 20:26:40 +08:00
parent a95c518b30
commit 70cd3f4e1b
5 changed files with 77 additions and 43 deletions

View File

@@ -270,13 +270,13 @@ export class DownloadManager {
<div class="local-path">${localPath || ''}</div>
</div>`;
} else if (hasBeenDownloaded) {
localStatus = `<div class="downloaded-badge">
const downloadedTooltip = translate(
'modals.download.downloadedTooltip',
{},
'Previously downloaded, but it is not currently in your library.'
);
localStatus = `<div class="downloaded-badge" title="${downloadedTooltip.replace(/"/g, '&quot;')}">
<i class="fas fa-history"></i> ${translate('modals.download.downloaded', {}, 'Downloaded')}
<div class="downloaded-info">${translate(
'modals.download.downloadedTooltip',
{},
'Previously downloaded, but it is not currently in your library.'
)}</div>
</div>`;
}