fix(web/ui): restore nav-item anchor styling for live session items
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user