feat: explain recommendations
CI / test (push) Successful in 19s

This commit is contained in:
strsv committed 2026-11-06 09:35:55 +03:00
1 parent deb0fa9383
commit ce0794a78e
12 files changed
+46 -9

No files matched your search

+3
View File
@@ -250,6 +250,8 @@ function cardHtml(g, mode = "library") {
: `<p class="card-desc loading" data-appid="${g.appid}">Описание подгружается…</p>`;
const matched = mode === "reco" && g.matched && g.matched.length
? `<p class="matched">${g.matched.map(esc).join(" · ")}</p>` : "";
const reasons = mode === "reco" && g.reasons && g.reasons.length
? `<ul class="reasons">${g.reasons.map((reason) => `<li>${esc(reason)}</li>`).join("")}</ul>` : "";
const feedback = mode === "reco" ? `
<div class="feedback-row">
${[["like", "в точку"], ["dislike", "не то"], ["played", "уже играл"], ["ignore", "не хочу"]]
@@ -268,6 +270,7 @@ function cardHtml(g, mode = "library") {
<div class="card-meta">${meta}</div>
<div class="card-genres">${genres}</div>
${matched}
${reasons}
${desc}
${feedback}
<div class="card-status">${statusChip(g.status)}</div>
+8 -1
View File
@@ -453,7 +453,14 @@ html[data-theme="light"] .select-box {
min-height: 0;
margin-top: 6px;
}
.grid.list-view .feedback-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.grid.list-view .reasons {
margin: 2px 0 0;
padding-left: 14px;
color: var(--muted);
font-size: 11px;
line-height: 1.45;
}
.feedback-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.feedback-row .fb {
padding: 3px 7px;
border-radius: 6px;