diff --git a/public/checklist.html b/public/checklist.html
index ef66fbf..2233d28 100644
--- a/public/checklist.html
+++ b/public/checklist.html
@@ -44,11 +44,6 @@
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
- /* New styles for table */
- .table-hover tbody tr:hover {
- background-color: #f1f1f1;
- cursor: pointer;
- }
@@ -90,25 +85,42 @@
Checklist
-
-
Temps avant les Oscars (— —) -
-
-
-
+
+
+
+
+
+
—
+
+ Temps avant les Oscars (— —) — —
+
+
+
+
+
+
+
-
-
-
- | Vu |
- Titre |
- Date |
-
-
-
-
-
-
+
+
+
+
+ | Vu |
+ Titre |
+ Date |
+
+
+
+
+ | Chargement… |
+
+
+
+
+
diff --git a/public/js/app_checklist.js b/public/js/app_checklist.js
index 0c74d9c..5823cdb 100644
--- a/public/js/app_checklist.js
+++ b/public/js/app_checklist.js
@@ -453,12 +453,9 @@ window.addEventListener('DOMContentLoaded', async function () {
${watchedDate} |
`;
- // Set initial row color based on watched state
- if (watchedMovie) {
- movieRow.style.backgroundColor = 'rgba(144, 238, 144, 0.6)'; // Lighter light green with transparency
- } else {
- movieRow.style.backgroundColor = 'rgba(255, 99, 71, 0.6)'; // Lighter light red with transparency
- }
+ // Use Bootstrap table state classes (matches Stats page styling better than custom backgrounds)
+ movieRow.classList.toggle('table-success', Boolean(watchedMovie));
+ movieRow.classList.toggle('table-danger', !watchedMovie);
movieTableBody.appendChild(movieRow);
@@ -478,10 +475,16 @@ window.addEventListener('DOMContentLoaded', async function () {
if (isChecked) {
watchedDateCell.textContent = new Date().toLocaleString();
- row.style.backgroundColor = 'rgba(144, 238, 144, 0.6)'; // Apply light green with transparency
+ if (row) {
+ row.classList.add('table-success');
+ row.classList.remove('table-danger');
+ }
} else {
watchedDateCell.textContent = '';
- row.style.backgroundColor = 'rgba(255, 99, 71, 0.6)'; // Apply light red with transparency
+ if (row) {
+ row.classList.add('table-danger');
+ row.classList.remove('table-success');
+ }
}
await fetch('/api/movies/users/updateWatchedMovies', {