Made the whole install command row a single clickable copy button, keeping the code styling and moving the copy icon to the right.
Details
CopyButton so the entire strip copies on click.flex-row-reverse so the icon sits on the right while the code stays left.Changed file
frontend/components/InstallTabs.tsxIf you want, I can:
Removed the press-scale on the full-row copy button by forcing active:scale-100.
Updated file
frontend/components/InstallTabs.tsxIf you also want to remove the active contour change, tell me and I’ll neutralize that too.
Made the command text left-aligned and ensured it can overflow within the row.
Updated file
frontend/components/InstallTabs.tsxOverflow should work now. The issue was the CopyButton wraps children in a <span> that wasn’t flexing/shrinking, so the code never got a constrained width to scroll within. I made that wrapper flex and min-w-0, and set the code to w-full.
Updated file
frontend/components/InstallTabs.tsxIf it still doesn’t scroll, I can also tweak the CopyButton component to allow an unwrapped child so we don’t fight the span.
Yes—using && between install and traces is appropriate for all three, because it only runs the CLI after a successful install. If you want it to attempt running even when install fails, you’d use ;, but that’s usually not desired.
Added a “View script” link on the right side of the tabs when the Shell tab is active.
Updated file
frontend/components/InstallTabs.tsxIf you’d prefer it not open a new tab or want a different URL/text, tell me.
Animated it in with a simple opacity transition and respected reduced motion.
Updated file
frontend/components/InstallTabs.tsxIf you want it to also slide in slightly, I can add a subtle translate with motion-safe.
Swapped it to next/link.
Updated file
frontend/components/InstallTabs.tsxCommitted all changes.
Commit
feat(frontend): improve install tabs interactionsfrontend/components/InstallTabs.tsx, frontend/components/HomeHero.tsx, frontend/components/TraceOverview.tsx, frontend/app/s/[id]/trace-layout-client.tsxNext steps
git push if you want it on the remote.