Skip to content

Commit c774a9c

Browse files
MuriloFPdaniel-lxs
authored andcommitted
Align indexing status dot button with other action icons
- Reverted the status dot to its original 8px size for visual consistency. - Updated the button container to use the same size, padding, and alignment as other IconButton actions (min-w-[28px], min-h-[28px], p-1.5, flex centering). - Ensured the dot is perfectly centered and the clickable area matches other chat input action buttons.
1 parent 3b7cfec commit c774a9c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

webview-ui/src/components/chat/IndexingStatusBadge.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,15 @@ export const IndexingStatusDot: React.FC<IndexingStatusDotProps> = ({ className
109109
onMouseEnter={handleMouseEnterButton}
110110
onMouseLeave={handleMouseLeaveButton}
111111
className={cn(
112-
"flex items-center px-2 py-1 rounded-md bg-transparent hover:bg-vscode-list-hoverBackground cursor-pointer transition-all duration-200 opacity-85 hover:opacity-100",
112+
"relative inline-flex items-center justify-center",
113+
"bg-transparent border-none p-1.5",
114+
"rounded-md min-w-[28px] min-h-[28px]",
115+
"opacity-85 text-vscode-foreground",
116+
"transition-all duration-150",
117+
"hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)]",
118+
"focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder",
119+
"active:bg-[rgba(255,255,255,0.1)]",
120+
className,
113121
)}
114122
aria-label={getTooltipText()}>
115123
<span

0 commit comments

Comments
 (0)