Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export function WorkspaceDiffStats({
return (
<div
className={cn(
"group/diff flex items-center text-[10px] font-mono tabular-nums px-1.5 py-0.5 rounded relative cursor-pointer",
"group/diff relative flex h-5 shrink-0 items-center rounded px-1.5 text-[10px] font-mono tabular-nums cursor-pointer",
isActive
? "bg-foreground/10 group-hover:bg-transparent"
: "bg-muted/50 group-hover:bg-transparent",
)}
>
<div
className={cn(
"flex items-center gap-1.5",
onClose && "group-hover:hidden",
"flex items-center gap-1.5 leading-none transition-opacity",
onClose && "group-hover:opacity-0",
)}
>
<span className="text-emerald-500/90">+{additions}</span>
Expand All @@ -39,7 +39,8 @@ export function WorkspaceDiffStats({
<button
type="button"
onClick={onClose}
className="hidden group-hover:flex items-center justify-center text-muted-foreground hover:text-foreground"
className="absolute inset-0 flex items-center justify-center text-muted-foreground leading-none opacity-0 pointer-events-none transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 hover:text-foreground"
aria-label="Close workspace"
>
<HiMiniXMark className="size-3.5" />
</button>
Expand Down
Loading