fix: harden quick-ask panel, prompt handling, and clipboard UX

This commit is contained in:
CREDO23 2026-03-29 02:54:48 +02:00
parent 6df9eea5a6
commit cfddfa54c6
5 changed files with 113 additions and 164 deletions

View file

@ -139,10 +139,13 @@ export function PromptsContent() {
id="prompt-template"
value={formData.prompt}
onChange={(e) => setFormData((p) => ({ ...p, prompt: e.target.value }))}
placeholder="e.g. Fix the grammar in the following text. Return only the corrected text."
placeholder="e.g. Fix the grammar in the following text:\n\n{selection}"
rows={4}
className="w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm outline-none resize-none focus:ring-1 focus:ring-ring"
/>
<p className="text-xs text-muted-foreground">
Use <code className="rounded bg-muted px-1 py-0.5 font-mono text-[11px]">{"{selection}"}</code> to insert the input text. If omitted, the text is appended automatically.
</p>
</div>
<div className="space-y-2">