web: truncate long interpretation arrays in the ask panel
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 changed file +2 −2
modified
apps/web/src/app/search/page.tsx
+2 −2
@@ -70,8 +70,8 @@ export default async function SearchPage({ searchParams }: { searchParams: Promi | ||
| 70 | 70 | .filter(([k]) => !['question', 'source', 'parser_version', 'llm_model', 'prompt_version', 'answer_style', 'filters'].includes(k)) |
| 71 | 71 | .filter(([, v]) => !(Array.isArray(v) && v.length === 0)) |
| 72 | 72 | .map(([k, v]) => ( |
| 73 | − <Chip key={k} tone="outline" className="max-w-full whitespace-normal break-words"> | |
| 74 | − {k.replace(/_/g, ' ')} = {Array.isArray(v) ? v.join(', ') : String(v)} | |
| 73 | + <Chip key={k} tone="outline" className="max-w-full whitespace-normal! break-words"> | |
| 74 | + {k.replace(/_/g, ' ')} = {Array.isArray(v) ? `${v.slice(0, 3).join(', ')}${v.length > 3 ? ` +${v.length - 3}` : ''}` : String(v)} | |
| 75 | 75 | </Chip> |
| 76 | 76 | ))} |
| 77 | 77 | </p> |
| 78 | 78 | |