fix: hide session badge and icon on hover to show action buttons

Hide the message count badge and provider icon when hovering over a session,
so they don't overlap with the edit/delete action buttons.
This commit is contained in:
Eric Blanquer​
2026-01-20 23:39:24 +01:00
parent b68a903781
commit 515ad3b336

View File

@@ -1166,11 +1166,11 @@ function Sidebar({
{formatTimeAgo(sessionTime, currentTime)} {formatTimeAgo(sessionTime, currentTime)}
</span> </span>
{messageCount > 0 && ( {messageCount > 0 && (
<Badge variant="secondary" className="text-xs px-1 py-0 ml-auto"> <Badge variant="secondary" className="text-xs px-1 py-0 ml-auto group-hover:opacity-0 transition-opacity">
{messageCount} {messageCount}
</Badge> </Badge>
)} )}
<span className="ml-1 opacity-70"> <span className="ml-1 opacity-70 group-hover:opacity-0 transition-opacity">
{isCursorSession ? ( {isCursorSession ? (
<CursorLogo className="w-3 h-3" /> <CursorLogo className="w-3 h-3" />
) : isCodexSession ? ( ) : isCodexSession ? (