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
🛞 style: Reveal the Steered "?" on Message Hover/Focus (#14271)
Danny Avilac865de99a581
diff --git a/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx b/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsxindex 299837ef93..6c6c0b64e8 100644--- a/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx@@ -104,8 +104,16 @@ const SteerPart = memo(function SteerPart({<div className="user-turn relative flex w-11/12 flex-col"><h2 className={cn('flex select-none items-center gap-1.5 font-semibold', fontSize)}>{label}- {/* Subtle "?" explaining why a user message appears inside the response. */}- <InfoHoverCard side={ESide.Top} text={localize('com_ui_steered_info')} />+ {/* Subtle "?" explaining why a user message appears inside the+ * response. Like the message hover buttons, it's revealed on+ * hover/focus on hover-capable pointers, but stays visible on+ * touch (no hover to reveal it) via [@media(hover:hover)]:opacity-0. */}+ <span+ data-testid="steer-info-affordance"+ className="transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100 [@media(hover:hover)]:opacity-0"+ >+ <InfoHoverCard side={ESide.Top} text={localize('com_ui_steered_info')} />+ </span><MessageTimestamp value={timestamp} />{onCancel != null && (<buttondiff --git a/client/src/components/Chat/Messages/Content/Parts/__tests__/SteerPart.test.tsx b/client/src/components/Chat/Messages/Content/Parts/__tests__/SteerPart.test.tsxindex e636882655..77196edc36 100644--- a/client/src/components/Chat/Messages/Content/Parts/__tests__/SteerPart.test.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/__tests__/SteerPart.test.tsx@@ -79,4 +79,14 @@ describe('SteerPart author label', () => {// assistant response (its text is the trigger's accessible label).expect(screen.getByLabelText('com_ui_steered_info')).toBeInTheDocument();});++ it('reveals on hover/focus on hover-capable pointers but stays visible on touch', () => {+ renderPart();+ // Like the hover buttons: hidden-at-rest ONLY on hover-capable pointers+ // ([@media(hover:hover)]:opacity-0), so touch devices keep it visible.+ const wrapper = screen.getByTestId('steer-info-affordance');+ expect(wrapper.className).toContain('[@media(hover:hover)]:opacity-0');+ expect(wrapper.className).toContain('group-hover:opacity-100');+ expect(wrapper.className).toContain('focus-within:opacity-100');+ });});