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: Improve Styling (#3205)
Danny Avila791b0139bc47
diff --git a/client/src/components/Chat/Messages/Message.tsx b/client/src/components/Chat/Messages/Message.tsxindex e4a4e9a85f..fc52a89584 100644--- a/client/src/components/Chat/Messages/Message.tsx+++ b/client/src/components/Chat/Messages/Message.tsx@@ -27,7 +27,10 @@ const MessageContainer = React.memo();const PlaceholderRow = React.memo(({ isLast, isCard }: { isLast: boolean; isCard?: boolean }) => {- if (!isLast && !isCard) {+ if (!isCard) {+ return null;+ }+ if (!isLast) {return null;}return <div className="mt-1 h-[27px] bg-transparent" />;@@ -99,7 +102,7 @@ const MessageRender = React.memo('final-completion group mx-auto flex flex-1 gap-3 text-base',isCard? 'relative w-full gap-1 rounded-lg border border-border-medium bg-surface-primary-alt p-2 md:w-1/2 md:gap-3 md:p-4'- : '',+ : 'md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]',isLatest ? 'bg-surface-secondary' : '',isLast && !isSubmittingFamily && isCard? 'cursor-pointer transition-colors duration-300'@@ -212,9 +215,7 @@ export default function Message(props: TMessageProps) {</div>) : (<div className="m-auto justify-center p-4 py-2 text-base md:gap-6 ">- <div className="final-completion group mx-auto flex flex-1 gap-3 text-base md:max-w-3xl md:px-5 lg:max-w-[40rem] lg:px-1 xl:max-w-[48rem] xl:px-5">- <MessageRender {...props} />- </div>+ <MessageRender {...props} /></div>)}</MessageContainer>diff --git a/client/src/components/Prompts/AdvancedSwitch.tsx b/client/src/components/Prompts/AdvancedSwitch.tsxindex abebd301ff..017b6f6389 100644--- a/client/src/components/Prompts/AdvancedSwitch.tsx+++ b/client/src/components/Prompts/AdvancedSwitch.tsx@@ -1,7 +1,8 @@import { useRecoilState, useSetRecoilState } from 'recoil';-import { Tabs, TabsList, TabsTrigger } from '~/components/ui';import { useLocalize } from '~/hooks';+import { cn } from '~/utils';import store from '~/store';+const { PromptsEditorMode, promptsEditorMode, alwaysMakeProd } = store;const AdvancedSwitch = () => {@@ -10,29 +11,35 @@ const AdvancedSwitch = () => {const setAlwaysMakeProd = useSetRecoilState(alwaysMakeProd);return (- <Tabs- defaultValue={mode}- className="w-auto rounded-lg"- onValueChange={(value) => {- value === PromptsEditorMode.SIMPLE && setAlwaysMakeProd(true);- setMode(value);- }}- >- <TabsList className="grid w-auto grid-cols-2 bg-surface-tertiary">- <TabsTrigger- value={PromptsEditorMode.SIMPLE}- className="w-20 min-w-0 rounded-md text-xs md:w-auto md:text-sm"+ <div className="inline-flex h-10 items-center justify-center rounded-lg border border-border-light bg-surface-primary p-0.5 text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50">+ <div className="flex flex-row items-stretch gap-0 whitespace-nowrap">+ <button+ type="button"+ className={`rounded-md px-3 py-1.5 text-sm font-medium transition-colors duration-200 ${+ mode === PromptsEditorMode.SIMPLE+ ? 'bg-surface-tertiary text-text-primary'+ : 'bg-transparent text-text-tertiary hover:text-text-secondary'+ }`}+ onClick={() => {+ setAlwaysMakeProd(true);+ setMode(PromptsEditorMode.SIMPLE);+ }}>{localize('com_ui_simple')}- </TabsTrigger>- <TabsTrigger- value={PromptsEditorMode.ADVANCED}- className="w-20 min-w-0 rounded-md text-xs md:w-auto md:text-sm"+ </button>+ <button+ type="button"+ className={`rounded-md px-3 py-1.5 text-sm font-medium transition-colors duration-200 ${+ mode === PromptsEditorMode.ADVANCED+ ? 'bg-surface-tertiary text-text-primary'+ : 'bg-transparent text-text-tertiary hover:text-text-secondary'+ }`}+ onClick={() => setMode(PromptsEditorMode.ADVANCED)}>{localize('com_ui_advanced')}- </TabsTrigger>- </TabsList>- </Tabs>+ </button>+ </div>+ </div>);};diff --git a/client/src/components/Prompts/Description.tsx b/client/src/components/Prompts/Description.tsxindex 8a79d000d5..23c0e85237 100644--- a/client/src/components/Prompts/Description.tsx+++ b/client/src/components/Prompts/Description.tsx@@ -50,7 +50,7 @@ const Description = ({placeholder={localize('com_ui_description_placeholder')}value={description}onChange={handleInputChange}- className="w-full rounded-lg border-none bg-transparent p-1 text-text-primary placeholder:text-text-tertiary placeholder:underline placeholder:underline-offset-2 focus:bg-surface-tertiary focus:outline-none focus:ring-0 md:w-96"+ className="w-full rounded-lg border-none bg-surface-tertiary p-1 text-text-primary placeholder:text-text-secondary-alt focus:bg-surface-tertiary focus:outline-none focus:ring-0 md:w-96"/>{!disabled && (<span className="mr-1 w-10 text-xs text-text-tertiary md:text-sm">{`${charCount}/${MAX_LENGTH}`}</span>diff --git a/client/src/components/Prompts/PromptForm.tsx b/client/src/components/Prompts/PromptForm.tsxindex f9160301a8..4530e11121 100644--- a/client/src/components/Prompts/PromptForm.tsx+++ b/client/src/components/Prompts/PromptForm.tsx@@ -278,7 +278,7 @@ const PromptForm = () => {)}<div className="flex h-full w-full flex-col md:flex-row">{/* Left Section */}- <div className="flex-1 overflow-y-auto border-r border-gray-300 p-4 dark:border-gray-600 md:max-h-[calc(100vh-150px)]">+ <div className="flex-1 overflow-y-auto border-gray-300 p-4 dark:border-gray-600 md:max-h-[calc(100vh-150px)] md:border-r">{isLoadingPrompts ? (<Skeleton className="h-96" />) : (diff --git a/client/src/components/Prompts/PromptsView.tsx b/client/src/components/Prompts/PromptsView.tsxindex 09a931d358..089f2dbb4a 100644--- a/client/src/components/Prompts/PromptsView.tsx+++ b/client/src/components/Prompts/PromptsView.tsx@@ -46,7 +46,7 @@ export default function PromptsView() {</GroupSidePanel><divclassName={cn(- 'w-full overflow-y-auto lg:w-3/4 xl:w-3/4',+ 'scrollbar-gutter-stable w-full overflow-y-auto lg:w-3/4 xl:w-3/4',isDetailView ? 'block' : 'hidden md:block',)}>diff --git a/client/src/components/Prompts/SkeletonForm.tsx b/client/src/components/Prompts/SkeletonForm.tsxindex f4dcbd68b7..f97838c0d0 100644--- a/client/src/components/Prompts/SkeletonForm.tsx+++ b/client/src/components/Prompts/SkeletonForm.tsx@@ -8,7 +8,7 @@ export default function SkeletonForm() {</div><div className="flex h-full w-full flex-col md:flex-row">{/* Left Section */}- <div className="flex-1 overflow-y-auto border-r border-border-medium-alt p-4 md:max-h-[calc(100vh-150px)]">+ <div className="flex-1 overflow-y-auto border-border-medium-alt p-4 md:max-h-[calc(100vh-150px)] md:border-r"><Skeleton className="h-96" /></div></div>diff --git a/client/src/mobile.css b/client/src/mobile.cssindex ee8b79d8a6..10ac81333d 100644--- a/client/src/mobile.css+++ b/client/src/mobile.css@@ -287,4 +287,8 @@.slow-pulse {animation: slowPulse 2.5s ease-in-out infinite;+}++.scrollbar-gutter-stable {+ scrollbar-gutter: stable;}\ No newline at end of filediff --git a/client/src/style.css b/client/src/style.cssindex 0703e375c2..6fb425958f 100644--- a/client/src/style.css+++ b/client/src/style.css@@ -25,6 +25,7 @@html {--text-primary:var(--gray-800);--text-secondary:var(--gray-600);+ --text-secondary-alt:var(--gray-500);--text-tertiary:var(--gray-500);--surface-primary:var(--white);--surface-primary-alt:var(--white);@@ -40,6 +41,7 @@ html {.dark {--text-primary:var(--gray-100);--text-secondary:var(--gray-300);+ --text-secondary-alt:var(--gray-400);--text-tertiary:var(--gray-500);--surface-primary:var(--gray-900);--surface-primary-alt:var(--gray-850);diff --git a/client/tailwind.config.cjs b/client/tailwind.config.cjsindex 1809a2ef48..c22c57191f 100644--- a/client/tailwind.config.cjs+++ b/client/tailwind.config.cjs@@ -66,6 +66,7 @@ module.exports = {'brand-purple': '#ab68ff','text-primary': 'var(--text-primary)','text-secondary': 'var(--text-secondary)',+ 'text-secondary-alt': 'var(--text-secondary-alt)','text-tertiary': 'var(--text-tertiary)','surface-primary': 'var(--surface-primary)','surface-primary-alt': 'var(--surface-primary-alt)',