Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
fix: Align Agent Contact Email with Its Label
Lia97bccd2e7db9
diff --git a/client/src/components/Agents/AgentContact.tsx b/client/src/components/Agents/AgentContact.tsxindex 7b075aac42..951603511a 100644--- a/client/src/components/Agents/AgentContact.tsx+++ b/client/src/components/Agents/AgentContact.tsx@@ -59,7 +59,7 @@ export default function AgentContact({{contact?.email ? (<ahref={`mailto:${contact.email}`}- className="text-text-primary focus-visible:ring-text-primary inline-block max-w-full truncate rounded-sm py-1 hover:underline focus-visible:ring-2 focus-visible:outline-hidden focus-visible:ring-inset"+ className="text-text-primary focus-visible:ring-text-primary block max-w-full truncate rounded-sm py-1 hover:underline focus-visible:ring-2 focus-visible:outline-hidden focus-visible:ring-inset">{label}</a>diff --git a/client/src/components/Chat/__tests__/Landing.agent-contact.spec.tsx b/client/src/components/Chat/__tests__/Landing.agent-contact.spec.tsxindex 692b672457..fdc4bda71d 100644--- a/client/src/components/Chat/__tests__/Landing.agent-contact.spec.tsx+++ b/client/src/components/Chat/__tests__/Landing.agent-contact.spec.tsx@@ -126,6 +126,29 @@ describe('Landing agent contact', () => {expect(screen.queryByRole('link', { name: 'Owner User' })).not.toBeInTheDocument();});+ it('renders the email link without inline baseline space beside the contact label', () => {+ mockConversation = {+ endpoint: 'agents',+ agent_id: 'agent-1',+ };+ mockAgentsMap = {+ 'agent-1': {+ id: 'agent-1',+ name: 'LibreChat',+ description: 'Contact Danny if you see any errors',+ support_contact: { email: '[email protected]' },+ },+ };++ renderLanding();++ const link = screen.getByRole('link', { name: '[email protected]' });+ expect(link).toHaveAttribute('href', 'mailto:[email protected]');+ expect(link).toHaveClass('block');+ expect(link).not.toHaveClass('inline-block');+ expect(screen.getByText('Contact:').parentElement).toHaveClass('items-center');+ });+it('does not show contact when the selected agent is missing from agentsMap', () => {mockConversation = {endpoint: 'agents',