fix: add tooltip to source dot in batch history
This commit is contained in:
parent
1f944841a3
commit
92077c9117
1 changed files with 4 additions and 2 deletions
|
|
@ -2876,8 +2876,10 @@ function _adlRenderBatchHistory() {
|
||||||
youtube: '255, 0, 0', tidal: '0, 255, 255', deezer: '162, 73, 255',
|
youtube: '255, 0, 0', tidal: '0, 255, 255', deezer: '162, 73, 255',
|
||||||
beatport: '148, 252, 19', listenbrainz: '255, 134, 0'
|
beatport: '148, 252, 19', listenbrainz: '255, 134, 0'
|
||||||
};
|
};
|
||||||
const dotColor = sourceColors[h.source] || sourceColors[h.source_page] || '255, 255, 255';
|
const dotSource = h.source || h.source_page || '';
|
||||||
const histDot = `<span class="adl-batch-history-dot" style="background:rgba(${dotColor}, 0.6)"></span>`;
|
const dotColor = sourceColors[dotSource] || '255, 255, 255';
|
||||||
|
const dotTip = dotSource ? `Source: ${dotSource}` : 'Unknown source';
|
||||||
|
const histDot = `<span class="adl-batch-history-dot" style="background:rgba(${dotColor}, 0.6)" title="${dotTip}"></span>`;
|
||||||
|
|
||||||
// Optional thumbnail
|
// Optional thumbnail
|
||||||
const thumb = h.thumb_url
|
const thumb = h.thumb_url
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue