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}`; : `${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) { export function formatDate(value) {
if (!value) return "?"; if (!value) return "?";
try { const date = new Date(value);
return new Date(value).toLocaleString(); return Number.isNaN(date.getTime()) ? String(value) : DATE_FORMAT.format(date);
} catch (_) {
return value;
}
} }
export function createApiClient({ getApiKey, basePath = "" } = {}) { export function createApiClient({ getApiKey, basePath = "" } = {}) {

View file

@ -30,6 +30,9 @@
--border: rgba(255, 255, 255, 0.08); --border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.12); --border-strong: rgba(255, 255, 255, 0.12);
--surface-strong: rgba(255, 255, 255, 0.15); --surface-strong: rgba(255, 255, 255, 0.15);
/* Fond plein des listes déroulantes : le navigateur ne sait pas dessiner leurs options sur un
fond transparent et les met sur du blanc, sous un texte blanc. */
--bg-raised: #21172f;
--shadow: rgba(2, 0, 8, 0.45); --shadow: rgba(2, 0, 8, 0.45);
--gradient: radial-gradient(circle at 20% 20%, #2d1a49, transparent 45%), --gradient: radial-gradient(circle at 20% 20%, #2d1a49, transparent 45%),
radial-gradient(circle at 80% 0%, #551e8c, transparent 40%), radial-gradient(circle at 80% 0%, #551e8c, transparent 40%),
@ -69,6 +72,8 @@ body {
font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--gradient), var(--bg); background: var(--gradient), var(--bg);
color: var(--text); color: var(--text);
/* Cases à cocher et barres de progression natives aux couleurs du site. */
accent-color: var(--accent);
} }
main { main {
@ -219,6 +224,7 @@ p {
color: var(--accent); color: var(--accent);
border-radius: 12px; border-radius: 12px;
font-size: 0.85rem; font-size: 0.85rem;
white-space: nowrap;
} }
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
@ -248,8 +254,38 @@ textarea {
font-size: 1rem; font-size: 1rem;
} }
select {
background-color: var(--bg-raised);
cursor: pointer;
}
select option,
select optgroup {
background-color: var(--bg-raised);
color: var(--text);
}
input[type="file"] { input[type="file"] {
padding: 0.5rem; padding: 0.5rem;
color: var(--muted);
cursor: pointer;
&::file-selector-button {
margin-right: 0.75rem;
padding: 0.4rem 1rem;
border: none;
border-radius: 999px;
background: var(--surface-strong);
color: var(--text);
font: inherit;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
}
&:hover::file-selector-button {
background: color-mix(in srgb, var(--accent) 35%, transparent);
}
} }
input:focus, input:focus,
@ -861,11 +897,31 @@ a.btn {
width: 100%; width: 100%;
} }
.control-group, /* L'illustration ne doit pas occuper tout le premier écran. */
.hero .hero__visual img {
max-width: 150px;
}
.hero {
padding: 1.5rem 1rem;
gap: 1rem;
}
.url-form__row { .url-form__row {
flex-direction: column; flex-direction: column;
} }
/* Boutons du lecteur sur deux colonnes ; « Stop & vider la file » seul en bas, à l'écart. */
.control-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
& .btn--danger {
grid-column: 1 / -1;
}
}
.upload-list__item { .upload-list__item {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 0.25rem; gap: 0.25rem;
@ -900,9 +956,21 @@ a.btn {
height: 96px; height: 96px;
} }
/* Boutons resserrés : « Ajouter, Modifier, Supprimer » tiennent sur une ligne. */
.media-item__actions .btn, .media-item__actions .btn,
.library-section__toolbar .btn { .library-section__toolbar .btn {
width: auto; width: auto;
flex: 1; flex: 1;
padding-inline: 0.5rem;
white-space: nowrap;
}
/* Flèches de déplacement à leur taille, sans s'étirer sur la ligne. */
.library-section__toolbar .btn:is([data-action="up"], [data-action="down"]) {
flex: 0 0 2.75rem;
}
.panel {
padding: 1.25rem;
} }
} }