feat(plex): make the actor filter-chip open the person page
The person cards above the Plex grid (the active actor filters) now open that person's filmography page on click, reusing S4's onOpenPerson; the ✕ still removes the filter. The name/photo become a button with the viewPerson tooltip; the remove control stays separate.
This commit is contained in:
@@ -398,7 +398,13 @@ export default function PlexBrowse() {
|
||||
{personCards.map((p) => (
|
||||
<div
|
||||
key={p.name}
|
||||
className="glass-card flex items-center gap-2.5 rounded-xl py-1.5 pl-1.5 pr-2.5"
|
||||
className="glass-card flex items-center gap-1 rounded-xl py-1.5 pl-1.5 pr-2.5"
|
||||
>
|
||||
{/* The photo + name open the actor's filmography page; the ✕ removes the filter. */}
|
||||
<button
|
||||
onClick={() => onOpenPerson(p.name)}
|
||||
title={t("plex.info.viewPerson", { name: p.name })}
|
||||
className="group/person flex min-w-0 items-center gap-2.5 rounded-lg text-left"
|
||||
>
|
||||
{p.photo ? (
|
||||
<img
|
||||
@@ -413,11 +419,14 @@ export default function PlexBrowse() {
|
||||
</div>
|
||||
)}
|
||||
<div className="min-w-0">
|
||||
<div className="text-sm font-medium truncate max-w-[150px]">{p.name}</div>
|
||||
<div className="text-sm font-medium truncate max-w-[150px] group-hover/person:text-accent">
|
||||
{p.name}
|
||||
</div>
|
||||
<div className="text-2xs text-muted">
|
||||
{t("plex.people.count", { count: p.count })}
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
<button
|
||||
onClick={() => removeActor(p.name)}
|
||||
title={t("plex.people.remove")}
|
||||
|
||||
Reference in New Issue
Block a user