Browse Source

fix: right-align FloatingNodeHeader controls to node edge

Replace gap-2 with justify-between so header controls (comment,
expand, run) stay flush-right against the node boundary on all widths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
7e5682a73d
  1. 2
      src/components/nodes/FloatingNodeHeader.tsx

2
src/components/nodes/FloatingNodeHeader.tsx

@ -213,7 +213,7 @@ export function FloatingNodeHeader({
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<div className="px-1 py-2 flex items-center gap-2 w-full">
<div className="px-1 py-2 flex items-center justify-between w-full">
{/* Title Section */}
<div className="flex-1 min-w-0 flex items-center gap-1.5 pl-2">
{titlePrefix}

Loading…
Cancel
Save