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: Improved Input Collapse UI (#10659)
Dustin Healy8b7af65265b5
diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsxindex 022cddd156..edd12bd3ac 100644--- a/client/src/components/Chat/Input/ChatForm.tsx+++ b/client/src/components/Chat/Input/ChatForm.tsx@@ -260,37 +260,50 @@ const ChatForm = memo(({ index = 0 }: { index?: number }) => {<FileFormChat conversation={conversation} />{endpoint && (<div className={cn('flex', isRTL ? 'flex-row-reverse' : 'flex-row')}>- <TextareaAutosize- {...registerProps}- ref={(e) => {- ref(e);- (textAreaRef as React.MutableRefObject<HTMLTextAreaElement | null>).current = e;- }}- disabled={disableInputs || isNotAppendable}- onPaste={handlePaste}- onKeyDown={handleKeyDown}- onKeyUp={handleKeyUp}- onCompositionStart={handleCompositionStart}- onCompositionEnd={handleCompositionEnd}- id={mainTextareaId}- tabIndex={0}- data-testid="text-input"- rows={1}- onFocus={() => {- handleFocusOrClick();- setIsTextAreaFocused(true);- }}- onBlur={setIsTextAreaFocused.bind(null, false)}- aria-label={localize('com_ui_message_input')}- onClick={handleFocusOrClick}- style={{ height: 44, overflowY: 'auto' }}- className={cn(- baseClasses,- removeFocusRings,- 'transition-[max-height] duration-200 disabled:cursor-not-allowed',+ <div className="relative flex-1">+ <TextareaAutosize+ {...registerProps}+ ref={(e) => {+ ref(e);+ (textAreaRef as React.MutableRefObject<HTMLTextAreaElement | null>).current =+ e;+ }}+ disabled={disableInputs || isNotAppendable}+ onPaste={handlePaste}+ onKeyDown={handleKeyDown}+ onKeyUp={handleKeyUp}+ onCompositionStart={handleCompositionStart}+ onCompositionEnd={handleCompositionEnd}+ id={mainTextareaId}+ tabIndex={0}+ data-testid="text-input"+ rows={1}+ onFocus={() => {+ handleFocusOrClick();+ setIsTextAreaFocused(true);+ }}+ onBlur={setIsTextAreaFocused.bind(null, false)}+ aria-label={localize('com_ui_message_input')}+ onClick={handleFocusOrClick}+ style={{ height: 44, overflowY: 'auto' }}+ className={cn(+ baseClasses,+ removeFocusRings,+ 'scrollbar-hover transition-[max-height] duration-200 disabled:cursor-not-allowed',+ )}+ />+ {isCollapsed && (+ <div+ className="pointer-events-none absolute bottom-0 left-0 right-0 h-10 transition-all duration-200"+ style={{+ backdropFilter: 'blur(2px)',+ WebkitMaskImage: 'linear-gradient(to top, black 15%, transparent 75%)',+ maskImage: 'linear-gradient(to top, black 15%, transparent 75%)',+ }}+ />)}- />- <div className="flex flex-col items-start justify-start pt-1.5">+ </div>+ <div className="flex flex-col items-start justify-start pr-2.5 pt-1.5"><CollapseChatisCollapsed={isCollapsed}isScrollable={isMoreThanThreeRows}diff --git a/client/src/style.css b/client/src/style.cssindex 2517834a53..2a4550f430 100644--- a/client/src/style.css+++ b/client/src/style.css@@ -1487,6 +1487,26 @@ button {background-color: transparent;}+/* Show scrollbar only on hover */+.scrollbar-hover {+ scrollbar-width: thin;+ scrollbar-color: transparent transparent;+}++.scrollbar-hover:hover {+ scrollbar-color: var(--border-medium) transparent;+}++.scrollbar-hover::-webkit-scrollbar-thumb {+ background-color: transparent;+ transition: background-color 0.3s ease 0.5s;+}++.scrollbar-hover:hover::-webkit-scrollbar-thumb {+ background-color: var(--border-medium);+ transition-delay: 0s;+}+body,html {height: 100%;