From 4610143e2f1c815695e03a40b68563ef8c0fab3d Mon Sep 17 00:00:00 2001 From: Nathan FONTEYNE Date: Fri, 10 Jul 2026 14:30:36 +0200 Subject: [PATCH] update: best visibility of concerts or rehersal in the diary, add button do delete a concert --- public/css/style.css | 10 ++++++++-- public/js/concerts.js | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index e77936a..e0c1d83 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1432,5 +1432,11 @@ a.back-link:hover { color: var(--accent); } line-height: 1; } -.cal-cell.has-rehearsal { border-color: var(--accent); } -.cal-cell.has-concert { border-color: var(--success); } +/* Concert/rehearsal markers take priority over the availability heat colors + above (same specificity, later in the cascade) — a scheduled date matters + more than who's free that day. */ +.cal-cell.has-rehearsal { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); border-color: var(--accent); } +.cal-cell.has-concert { background: color-mix(in srgb, var(--accent-2) 20%, var(--surface)); border-color: var(--accent-2); } +.cal-cell.has-rehearsal.has-concert { + background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), color-mix(in srgb, var(--accent-2) 20%, var(--surface))); +} diff --git a/public/js/concerts.js b/public/js/concerts.js index eeeff44..c859ec0 100644 --- a/public/js/concerts.js +++ b/public/js/concerts.js @@ -174,6 +174,8 @@ function showHistoryDetail(id) { getSetlist: () => api.get('/api/setlists/next'), createSetlist: (data) => api.post('/api/setlists', data), emptyMessage: 'Aucun concert à venir pour le moment.', + allowDelete: true, + onDeleted: () => nextEditor.load(), }); document.getElementById('tab-next').addEventListener('click', () => switchTab('next'));