Widen batch panel to 400px, shorten stat labels
This commit is contained in:
parent
9b3e65c3d8
commit
11b74d7c14
2 changed files with 6 additions and 6 deletions
|
|
@ -2832,16 +2832,16 @@ function _adlRenderBatchHistory() {
|
||||||
const failed = h.tracks_failed || 0;
|
const failed = h.tracks_failed || 0;
|
||||||
const total = h.total_tracks || 0;
|
const total = h.total_tracks || 0;
|
||||||
|
|
||||||
// Build stats line: "X in library · X downloaded · X failed (of N)"
|
// Build stats line: "X owned · X new · X failed · X missing"
|
||||||
const statsParts = [];
|
const statsParts = [];
|
||||||
if (found > 0 || downloaded > 0) {
|
if (found > 0 || downloaded > 0) {
|
||||||
const owned = found - downloaded; // already in library before this sync
|
const owned = found - downloaded; // already in library before this sync
|
||||||
if (owned > 0) statsParts.push(`<span style="color:rgba(74,222,128,0.7)" title="Already in library">${owned} in library</span>`);
|
if (owned > 0) statsParts.push(`<span style="color:rgba(74,222,128,0.7)" title="Already in library">${owned} owned</span>`);
|
||||||
if (downloaded > 0) statsParts.push(`<span style="color:rgba(96,165,250,0.7)" title="Downloaded">${downloaded} downloaded</span>`);
|
if (downloaded > 0) statsParts.push(`<span style="color:rgba(96,165,250,0.7)" title="Newly downloaded">${downloaded} new</span>`);
|
||||||
}
|
}
|
||||||
if (failed > 0) statsParts.push(`<span style="color:#ef4444" title="Failed">${failed} failed</span>`);
|
if (failed > 0) statsParts.push(`<span style="color:#ef4444" title="Failed to download">${failed} failed</span>`);
|
||||||
const notFound = total - found - failed;
|
const notFound = total - found - failed;
|
||||||
if (notFound > 0) statsParts.push(`<span title="Not found">${notFound} not found</span>`);
|
if (notFound > 0) statsParts.push(`<span title="Not found on any source">${notFound} missing</span>`);
|
||||||
if (statsParts.length === 0) statsParts.push(`${total} tracks`);
|
if (statsParts.length === 0) statsParts.push(`${total} tracks`);
|
||||||
|
|
||||||
let dateText = '';
|
let dateText = '';
|
||||||
|
|
|
||||||
|
|
@ -56736,7 +56736,7 @@ body.reduce-effects *::after {
|
||||||
|
|
||||||
/* ---- Batch Context Panel ---- */
|
/* ---- Batch Context Panel ---- */
|
||||||
.adl-batch-panel {
|
.adl-batch-panel {
|
||||||
width: 340px;
|
width: 400px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border-left: 1px solid rgba(255, 255, 255, 0.06);
|
border-left: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
padding: 0 12px 0 24px;
|
padding: 0 12px 0 24px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue