Replace track count with source in results table

Changed table columns from Title | Duration | Tracks
to Title | Source | Duration - more useful to see where
the MIDI is from (BitMidi, etc.) than track count.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
b1rdmania
2025-12-18 21:23:12 +00:00
parent 34092f2301
commit 234f6e38b5
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -183,8 +183,12 @@
text-transform: uppercase;
}
.results-table .duration-col,
.results-table .tracks-col {
.results-table .source-col {
width: 100px;
text-align: center;
}
.results-table .duration-col {
width: 80px;
text-align: center;
}
@@ -222,7 +226,7 @@
font-size: 11px;
}
.results-table .tracks-col {
.results-table .source-col {
display: none;
}
@@ -627,8 +631,8 @@
<thead>
<tr>
<th>Title</th>
<th class="source-col">Source</th>
<th class="duration-col">Duration</th>
<th class="tracks-col">Tracks</th>
</tr>
</thead>
<tbody id="resultsBody">
+1 -1
View File
@@ -190,8 +190,8 @@ class MotifApp {
row.innerHTML = `
<td>${result.title}</td>
<td class="source-col">${result.source}</td>
<td class="duration-col">${result.parsed ? Math.round(result.parsed.durationSec) + 's' : '?'}</td>
<td class="tracks-col">${result.parsed ? result.parsed.tracks.length : '?'}</td>
`;
// Make entire row clickable