diff --git a/packages/studio/src/player/components/TimelineGroupHeader.tsx b/packages/studio/src/player/components/TimelineGroupHeader.tsx index b36fdd7ea..64a1fa941 100644 --- a/packages/studio/src/player/components/TimelineGroupHeader.tsx +++ b/packages/studio/src/player/components/TimelineGroupHeader.tsx @@ -52,7 +52,10 @@ function GroupNameButton({ tabIndex={-1} aria-label={`Open ${label} effects`} title="Open effects" - className="flex min-w-0 flex-1 items-center gap-1.5 rounded border-0 bg-transparent p-0 text-left text-[11px] text-white hover:text-[#3CE6AC] focus-visible:outline focus-visible:outline-1 focus-visible:outline-[#3CE6AC]" + // No `flex-1`: the row's control group owns the slack now (`ml-auto`), so + // claiming it here would push the controls off the right edge — and the + // count with them, since it rides inside this button. + className="flex h-6 min-w-0 items-center gap-1.5 rounded border-0 bg-transparent p-0 text-left text-[11px] text-white hover:text-[#3CE6AC] focus-visible:outline focus-visible:outline-1 focus-visible:outline-[#3CE6AC]" onPointerDown={(event) => event.stopPropagation()} onClick={(event) => { event.stopPropagation(); @@ -70,10 +73,6 @@ function GroupNameButton({ > {memberCount} - {/* Eats the slack so the count sits beside the name rather than drifting - to the far edge, while the button itself stays full width — the whole - name line is the target that opens the rack. */} -