Fix unreadable dropdowns and tidy the jukebox page on phones
All checks were successful
Deploy Palico Bot / check (push) Successful in 10s
Deploy Palico Bot / deploy (push) Successful in 6s

Section dropdowns had a transparent background and white text: Chrome
on Windows drew their options on white, so they could not be read.
Selects and their options now get a solid dark background.

Also style the file picker button and checkboxes, keep the drag-and-drop
badge on one line, and on phones shrink the illustration, lay the player
buttons out on two columns and fit track and section buttons on fewer
lines. Dates are shown in short French ("2 déc. 2026, 11:24").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-02 11:32:08 +01:00
parent 5ca0575cca
commit d14cc414b5
2 changed files with 74 additions and 6 deletions

View file

@ -115,13 +115,13 @@ export function formatDuration(seconds) {
: `${minutes}:${secs}`;
}
// Date courte en français, sans les secondes : « 2 déc. 2026, 11:24 ».
const DATE_FORMAT = new Intl.DateTimeFormat("fr-FR", { dateStyle: "medium", timeStyle: "short" });
export function formatDate(value) {
if (!value) return "?";
try {
return new Date(value).toLocaleString();
} catch (_) {
return value;
}
const date = new Date(value);
return Number.isNaN(date.getTime()) ? String(value) : DATE_FORMAT.format(date);
}
export function createApiClient({ getApiKey, basePath = "" } = {}) {