Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): overlapping variables for chat prompt (#5740)

marliessophie534e832c1343
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index b82d6b069d..fd779df56b 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -455,10 +455,12 @@ export const PromptDetail = () => {
>
<div className="mb-2 flex max-h-full min-h-0 w-full flex-col gap-2 overflow-y-auto">
{prompt.type === PromptType.Chat && chatMessages ? (
- <OpenAiMessageView
- messages={chatMessages}
- collapseLongHistory={false}
- />
+ <div className="w-full">
+ <OpenAiMessageView
+ messages={chatMessages}
+ collapseLongHistory={false}
+ />
+ </div>
) : typeof prompt.prompt === "string" ? (
<CodeView content={prompt.prompt} title="Text Prompt" />
) : (