feat: compare mood presets in the UI
Add GET /api/compare with shared/unique games and Jaccard, plus a preset comparison panel on the recommendations tab.
This commit is contained in:
1 parent
9943081baa
commit
02af4bde09
10 files changed
+198
-3
No files matched your search
@@ -862,6 +862,33 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(243, 180, 92, .3); }
|
||||
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
|
||||
|
||||
.compare-panel { display: flex; flex-direction: column; gap: 10px; margin-top: -4px; }
|
||||
.compare-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
||||
.compare-form[hidden] { display: none; }
|
||||
.compare-form select { width: auto; min-width: 180px; }
|
||||
.compare-result {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
.compare-result[hidden] { display: none; }
|
||||
.compare-col { flex: 1 1 220px; min-width: 180px; }
|
||||
.compare-col h3 {
|
||||
margin: 0 0 6px;
|
||||
font-size: 12px;
|
||||
letter-spacing: .04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
|
||||
.compare-col .link { text-align: left; }
|
||||
.compare-score { margin-left: 6px; font-size: 12px; color: var(--accent-2); }
|
||||
.compare-jaccard { margin-bottom: 4px; font-size: 13px; color: var(--text); }
|
||||
|
||||
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
|
||||
.reco-actions[hidden] { display: none; }
|
||||
.reco-actions .ghost { flex: 0 0 auto; padding: 7px 12px; }
|
||||
|
||||
Reference in new issue
Block a user