Skip to content

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

fix(ui): full prompt name on hover when saving as new version from playground (#2208)

Marc Klingenf59a85f412ec
diff --git a/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx b/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx
index 4288bd7ea0..2c63229656 100644
--- a/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx
+++ b/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx
@@ -49,8 +49,7 @@ export const SaveToPromptButton: React.FC = () => {
)
.data?.prompts.filter((prompt) => prompt.type === PromptType.Chat)
.map((prompt) => ({
- label:
- prompt.name.slice(0, 20) + (prompt.name.length > 25 ? "..." : ""),
+ label: prompt.name,
value: prompt.id,
})) ?? [];
@@ -126,7 +125,9 @@ export const SaveToPromptButton: React.FC = () => {
: "opacity-0",
)}
/>
- {promptName.label}
+ <span className="overflow-hidden text-ellipsis whitespace-nowrap">
+ {promptName.label}
+ </span>
</CommandItem>
))}
</CommandList>