🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(prompts): Prevent text overlap when adding prompt reference (#13236)
Ben Bachemade2c3cff24d
diff --git a/web/src/components/editor/PromptLinkingEditor.tsx b/web/src/components/editor/PromptLinkingEditor.tsxindex 3b99801f26..e7a973f017 100644--- a/web/src/components/editor/PromptLinkingEditor.tsx+++ b/web/src/components/editor/PromptLinkingEditor.tsx@@ -54,7 +54,7 @@ export function PromptLinkingEditor({};return (- <div className="relative">+ <div className="flex flex-col gap-2"><CodeMirrorEditorvalue={value}onChange={onChange}@@ -64,15 +64,17 @@ export function PromptLinkingEditor({className={className}editorRef={editorRef}/>- <Button- type="button"- variant="outline"- className="absolute right-2 bottom-2 flex items-center gap-1 px-2 py-1"- onClick={() => setIsDialogOpen(true)}- >- <Plus className="mr-2 h-4 w-4" />- <span className="text-xs">Add prompt reference</span>- </Button>+ <div className="flex justify-end">+ <Button+ type="button"+ variant="outline"+ className="flex items-center gap-1 px-2 py-1"+ onClick={() => setIsDialogOpen(true)}+ >+ <Plus className="mr-2 h-4 w-4" />+ <span className="text-xs">Add prompt reference</span>+ </Button>+ </div>{projectId && (<PromptSelectionDialog