fix(web): restore compact header sizing for project script controls

The thread-panel mapping change replaced the compact className on the
Run and Add controls with the isPanel conditional and dropped the
non-panel icon-compact classes that the responsive test asserts.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 committed 2026-08-15 16:51:13 +02:00
1 parent 298d797e72
commit 0285d41813
1 file changed
+5 -1
@@ -189,7 +189,11 @@ export default function ProjectScriptsControl({
<Button
size="xs"
variant={isPanel ? "ghost" : "outline"}
className={isPanel ? THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS : undefined}
className={
isPanel
? THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS
: "w-7 px-0 sm:w-6 @3xl/header-actions:w-auto! @3xl/header-actions:px-[calc(--spacing(2)-1px)]"
}
aria-label={`Run ${primaryScript.name}`}
// The tooltip wrapper replaces data-slot="button", so themed
// toolbar styling needs its own hook.