Skip to content

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

fix(prompts): draft button overlap (#11633)

Nimar90cf22da8410
diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsx
index 3dddc0ea16..fae001e394 100644
--- a/web/src/features/prompts/components/NewPromptForm/index.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx
@@ -320,7 +320,9 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {
</TabsList>
) : null}
{hadDraft && (
- <p className="-mt-2 mb-1 text-right text-xs text-muted-foreground">
+ <p
+ className={`mb-1 text-right text-xs text-muted-foreground ${initialPrompt ? "-mt-2" : "mt-1"}`}
+ >
Draft restored.{" "}
<button
type="button"