fix(web/ui): restore nav-item anchor styling for live session items

This commit is contained in:
Developer
2026-06-17 09:47:37 +00:00
parent 85627793b4
commit ab93863ea9
+9 -4
View File
@@ -43,10 +43,15 @@ const SessionItem = ({ session }: { session: Session }) => {
if (contextName) tooltipParts.push(contextName); if (contextName) tooltipParts.push(contextName);
tooltipParts.push(`(${session.status})`); tooltipParts.push(`(${session.status})`);
const handleClick = (event: React.MouseEvent) => {
event.preventDefault();
openSession(session);
};
return ( return (
<button <a
type="button" href="#"
onClick={() => openSession(session)} onClick={handleClick}
className="nav-item session-item" className="nav-item session-item"
title={tooltipParts.join(" · ")} title={tooltipParts.join(" · ")}
> >
@@ -63,7 +68,7 @@ const SessionItem = ({ session }: { session: Session }) => {
{session.tool_type_name} · {session.project_name} {session.tool_type_name} · {session.project_name}
</span> </span>
</span> </span>
</button> </a>
); );
}; };