Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion frontend/src/components/sidebar/SessionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,33 @@ export function SessionCard({
<X className="size-3"/>
</span>
</ContextMenuTrigger>
<TooltipContent>{shownPath}</TooltipContent>
<TooltipContent
side="right"
className="max-w-xs border border-border bg-card text-foreground"
>
<div className="flex flex-col gap-1.5">
<span className="font-medium">{session.label}</span>
<span className="font-mono text-muted-foreground">{shownPath}</span>
{git?.branch && (
<span className="flex flex-wrap items-center gap-2 text-muted-foreground">
<span className="flex items-center gap-1">
<GitBranch className="size-3 shrink-0" />
{git.branch}
</span>
{pr && (
<span className="flex items-center gap-1">
<GitPullRequestArrow className="size-3 shrink-0" />#{pr.number}
</span>
)}
{git.files > 0 && (
<span className="flex items-center gap-1.5">
<DiffStat added={git.added} deleted={git.deleted} />
</span>
)}
</span>
)}
</div>
</TooltipContent>
</Tooltip>
<ContextMenuContent>
<ContextMenuItem onClick={() => setEditing(true)}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function TooltipContent({
{...props}
>
{children}
<TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" />
<TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-inherit fill-inherit data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" />
</TooltipPrimitive.Popup>
</TooltipPrimitive.Positioner>
</TooltipPrimitive.Portal>
Expand Down
Loading