anything
This commit is contained in:
@@ -726,15 +726,13 @@ onClick={() => { navigate(`/ratings/${t.name}`); setSelectedCatId(t.categories[0
|
||||
>
|
||||
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 4 }}>
|
||||
<div style={{ fontWeight: 700, fontSize: 20, color: textClr }}>{selected.name}</div>
|
||||
<div style={{ display: "flex", gap: 8, flexShrink: 0, marginLeft: 8 }}>
|
||||
{selected.categories.map((cat) => (
|
||||
<div key={cat.id} style={{ fontSize: 14, color: "#e6c200" }}>
|
||||
{user ? (
|
||||
<span onClick={() => toggleStar(selected.id, cat.id)} style={{ cursor: "pointer", fontSize: 16, color: cat.userStarred ? "#e6c200" : mutedClr, lineHeight: 1 }}>{cat.userStarred ? "★" : "☆"} {cat.starCount}</span>
|
||||
) : <span style={{ fontSize: 14 }}>★ {cat.starCount}</span>}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
{selected.categories[0] && (
|
||||
<div style={{ fontSize: 14, color: "#e6c200", flexShrink: 0, marginLeft: 8 }}>
|
||||
{user ? (
|
||||
<span onClick={() => toggleStar(selected.id, selected.categories[0].id)} style={{ cursor: "pointer", fontSize: 16, color: selected.categories[0].userStarred ? "#e6c200" : mutedClr, lineHeight: 1 }}>{selected.categories[0].userStarred ? "★" : "☆"} {selected.categories[0].starCount}</span>
|
||||
) : <span style={{ fontSize: 14 }}>★ {selected.categories[0].starCount}</span>}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{selected.picture && <img src={selected.picture} alt="" style={{ width: "100%", maxHeight: 400, objectFit: "contain", marginBottom: 12 }} />}
|
||||
{(() => {
|
||||
|
||||
Reference in New Issue
Block a user