Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(aio): fix prompt label picker item indent and clipped validation message (#73140)

Juraj Majerikd30f6dabcdd1
diff --git a/products/ai_observability/frontend/prompts/PromptLabelPicker.tsx b/products/ai_observability/frontend/prompts/PromptLabelPicker.tsx
index 0ebd0f5b503d..56d491345ff8 100644
--- a/products/ai_observability/frontend/prompts/PromptLabelPicker.tsx
+++ b/products/ai_observability/frontend/prompts/PromptLabelPicker.tsx
@@ -63,19 +63,23 @@ export function PromptLabelPicker({ version }: { version: number }): JSX.Element
data-attr="llma-prompt-label-picker-input"
/>
<ComboboxContent>
- <ComboboxEmpty>{validationError ?? 'No matching labels'}</ComboboxEmpty>
+ {/* h-auto + whitespace-normal: validation messages are longer than one line */}
+ <ComboboxEmpty className="h-auto whitespace-normal py-1.5 text-left">
+ {validationError ?? 'No matching labels'}
+ </ComboboxEmpty>
<ComboboxList>
{(item: string) => {
+ // ps-2: no item is ever "selected" here, so skip the check-indicator gutter
if (item === createSentinel) {
return (
- <ComboboxItem key={item} value={item}>
+ <ComboboxItem key={item} value={item} className="ps-2">
Create label "{trimmed}"
</ComboboxItem>
)
}
const hint = labelHint(item)
return (
- <ComboboxItem key={item} value={item}>
+ <ComboboxItem key={item} value={item} className="ps-2">
<span>{item}</span>
{hint ? <span className="text-xs text-secondary">{hint}</span> : null}
</ComboboxItem>