Actualiser js/public.js

This commit is contained in:
2026-06-21 13:18:45 +02:00
parent a1ec9afe29
commit a1fd70132f
+2 -2
View File
@@ -160,7 +160,7 @@ function renderPublicGrid() {
} }
if (f.type === 'critique') { if (f.type === 'critique') {
const starsHTML = getStarsHTML(f.rating) + `<span class="card-rating-badge">${parseFloat(f.rating).toFixed(1)}</span>`; const starsHTML = getStarsHTML(f.rating) + `<span class="card-rating-badge">${parseFloat(f.rating)}</span>`;
card.innerHTML = ` card.innerHTML = `
${posterHTML} ${posterHTML}
${streamingBadge} ${streamingBadge}
@@ -275,7 +275,7 @@ function openDetail(id) {
if (dBody) { if (dBody) {
if (f.type === 'critique') { if (f.type === 'critique') {
const stars = getStarsHTML(f.rating) + `<span style="font-size:1rem; color:var(--muted); margin-left:0.5rem;">${parseFloat(f.rating).toFixed(1)}/5</span>`; const stars = getStarsHTML(f.rating) + `<span style="font-size:1rem; color:var(--muted); margin-left:0.5rem;">${parseFloat(f.rating)}/5</span>`;
dBody.innerHTML = ` dBody.innerHTML = `
<div class="detail-stars">${stars}</div> <div class="detail-stars">${stars}</div>
<div class="pub-review-card"> <div class="pub-review-card">