Skip to content

Commit 4dfe1a0

Browse files
committed
fix(web): stop button icon no longer shifts on hover
The stop-generation button used hover:scale-105, which scaled the 12px square icon to 12.6px and let subpixel rounding drift it off-center. Hover is now color-only (transition-colors) with shrink-0 so the fixed size-8 button stays centered.
1 parent cf3e714 commit 4dfe1a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/chat/ComposerPrimaryActions.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
127127
<button
128128
type="button"
129129
className={cn(
130-
"flex cursor-pointer items-center justify-center rounded-full bg-destructive/90 text-white shadow-xs shadow-destructive/24 inset-shadow-control-highlight transition-all duration-150 hover:bg-destructive hover:scale-105 active:inset-shadow-control-pressed active:shadow-none [&_svg]:pointer-events-none",
130+
"flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-destructive/90 text-white shadow-xs shadow-destructive/24 inset-shadow-control-highlight transition-colors duration-150 hover:bg-destructive active:inset-shadow-control-pressed active:shadow-none [&_svg]:pointer-events-none",
131131
insidePendingAction ? "size-8 sm:size-7" : "size-8 sm:h-8 sm:w-8",
132132
)}
133133
{...pointerFocusProps}

0 commit comments

Comments
 (0)