fix: grid view context menu not triggering

Right click on cards was not showing context menu.
This commit is contained in:
talksik
2026-04-08 08:11:51 -07:00
parent 97437c7089
commit d8b4c488b5
@@ -35,14 +35,15 @@ export function ParticleGridView({ streams, networkId, isLoading, selectedIndex
<div className="grid grid-cols-3 gap-3 px-3">
{streams.map((stream, index) => (
<StreamContextMenu key={stream.id} particle={stream} networkId={networkId}>
<StreamCard
ref={index === selectedIndex ? (el) => el?.scrollIntoView({ block: "nearest" }) : undefined}
particle={stream}
networkId={networkId}
onClick={() => navigate(`/${networkId}/${stream.id}`)}
isSelected={index === selectedIndex}
shortcutKey={index < 9 ? index + 1 : undefined}
/>
<div ref={index === selectedIndex ? (el) => el?.scrollIntoView({ block: "nearest" }) : undefined}>
<StreamCard
particle={stream}
networkId={networkId}
onClick={() => navigate(`/${networkId}/${stream.id}`)}
isSelected={index === selectedIndex}
shortcutKey={index < 9 ? index + 1 : undefined}
/>
</div>
</StreamContextMenu>
))}
</div>