From 084e6563442d5c1922f2539d824964a3391d3064 Mon Sep 17 00:00:00 2001 From: brennanb2025 Date: Sun, 31 May 2026 18:51:23 -0700 Subject: [PATCH] Soften setup prompt command field Co-authored-by: Orca --- src/renderer/src/assets/main.css | 10 ++++++++++ .../components/sidebar/SetupScriptPromptCardViews.tsx | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index c5263256367..990ecc3553d 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -856,6 +856,16 @@ background: color-mix(in srgb, var(--sidebar-foreground) 12%, var(--sidebar)); } +/* Why: the detected command is editable, but a pure app-background fill reads + like a black box in dark mode and overpowers the prompt card. */ +.setup-script-prompt-command { + background: color-mix(in srgb, var(--sidebar-foreground) 2%, var(--sidebar)); +} + +.dark .setup-script-prompt-command { + background: color-mix(in srgb, var(--sidebar-foreground) 8%, var(--sidebar)); +} + .worktree-agent-send-target-button { /* Why: the row remains an ordinary agent row during send-target mode; the action itself carries the AI target outline so the clickable affordance diff --git a/src/renderer/src/components/sidebar/SetupScriptPromptCardViews.tsx b/src/renderer/src/components/sidebar/SetupScriptPromptCardViews.tsx index 925238a9f36..fa177cc02da 100644 --- a/src/renderer/src/components/sidebar/SetupScriptPromptCardViews.tsx +++ b/src/renderer/src/components/sidebar/SetupScriptPromptCardViews.tsx @@ -55,7 +55,7 @@ export function DetectedSetupPreview({ onChange={(event) => onSetupChange(event.target.value)} spellCheck={false} rows={Math.min(Math.max(setup.split('\n').length, 2), 6)} - className="max-h-28 w-full resize-y overflow-auto scrollbar-sleek rounded-md border border-sidebar-border bg-background px-2 py-1.5 font-mono text-[11px] leading-5 text-foreground shadow-xs outline-none focus-visible:ring-1 focus-visible:ring-ring" + className="setup-script-prompt-command max-h-28 w-full resize-y overflow-auto scrollbar-sleek rounded-md border border-sidebar-border px-2 py-1.5 font-mono text-[11px] leading-5 text-foreground shadow-xs outline-none focus-visible:ring-1 focus-visible:ring-ring" /> {provenance ? (