diff --git a/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md b/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md index 9df9fc47..a896d5a5 100644 --- a/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md +++ b/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md @@ -109,7 +109,7 @@ Layout (top to bottom, full pane height, `overflow-y-auto`): 5. **Action bar** - **Generate** button: full-width, `bg-gradient-brand`, disabled/loading behavior same as current - **Download .ps1** + **Copy** buttons: side by side below Generate, each `flex-1` - - The Copy button in the action bar copies `generatedScript` (or the draft display if not yet generated). `ScriptPreview`'s existing copy overlay is **retained as-is** — two copy entry-points is acceptable. + - The Copy button copies `store.generatedScript`. It is disabled when `generatedScript === null`. Draft copy is handled by `ScriptPreview`'s existing overlay — two copy entry-points is acceptable. - Error text below if `generateError` is set **Loading state:** When `isLoadingDetail === true`, shows a centered `` filling the pane instead of the template content.