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);
|
||||
tooltipParts.push(`(${session.status})`);
|
||||
|
||||
const handleClick = (event: React.MouseEvent) => {
|
||||
event.preventDefault();
|
||||
openSession(session);
|
||||
};
|
||||
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => openSession(session)}
|
||||
<a
|
||||
href="#"
|
||||
onClick={handleClick}
|
||||
className="nav-item session-item"
|
||||
title={tooltipParts.join(" · ")}
|
||||
>
|
||||
@@ -63,7 +68,7 @@ const SessionItem = ({ session }: { session: Session }) => {
|
||||
{session.tool_type_name} · {session.project_name}
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user