Skip to content

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

⛴️ style: Match Theme Class Ordering in Canary Sync

Lia70bf641e50ec
diff --git a/client/src/components/Auth/TwoFactorScreen.tsx b/client/src/components/Auth/TwoFactorScreen.tsx
index ffb8772aad..8e543a4b44 100644
--- a/client/src/components/Auth/TwoFactorScreen.tsx
+++ b/client/src/components/Auth/TwoFactorScreen.tsx
@@ -86,7 +86,7 @@ const TwoFactorScreen: React.FC = React.memo(() => {
return (
<div className="mt-4">
<form onSubmit={handleSubmit(onSubmit)}>
- <Label className="text-text-primary flex justify-center text-center text-sm break-keep">
+ <Label className="text-text-primary flex justify-center break-keep text-center text-sm">
{localize('com_auth_two_factor')}
</Label>
{!useBackup && (
diff --git a/client/src/components/Chat/Input/QuoteButton.tsx b/client/src/components/Chat/Input/QuoteButton.tsx
index 9a10501a84..05f487d696 100644
--- a/client/src/components/Chat/Input/QuoteButton.tsx
+++ b/client/src/components/Chat/Input/QuoteButton.tsx
@@ -632,7 +632,7 @@ function QuoteButton({ conversationId }: { conversationId: string }) {
display: 'none',
}}
className={cn(
- 'fixed z-50 inline-flex items-center gap-1.5 rounded-full border border-border-light bg-surface-secondary text-sm font-medium text-text-primary shadow-lg transition-colors hover:bg-surface-tertiary',
+ 'border-border-light bg-surface-secondary text-text-primary hover:bg-surface-tertiary fixed z-50 inline-flex items-center gap-1.5 rounded-full border text-sm font-medium shadow-lg transition-colors',
/** Comfortable tap target when the selection came from a finger. */
'px-3 py-1.5 data-[touch=true]:min-h-11 data-[touch=true]:px-4 data-[touch=true]:py-2.5',
)}
diff --git a/client/src/components/Chat/Messages/Content/Part.tsx b/client/src/components/Chat/Messages/Content/Part.tsx
index 76aadac61a..775cc1efdb 100644
--- a/client/src/components/Chat/Messages/Content/Part.tsx
+++ b/client/src/components/Chat/Messages/Content/Part.tsx
@@ -198,7 +198,7 @@ const Part = memo(function Part({
const failed = part.status === 'failed' || part.status === 'partial';
return (
<div
- className={`my-1 pl-1 text-sm break-words italic ${failed ? 'text-text-warning' : 'text-text-secondary'}`}
+ className={`my-1 break-words pl-1 text-sm italic ${failed ? 'text-text-warning' : 'text-text-secondary'}`}
>
{display}
</div>
diff --git a/client/src/components/Chat/Messages/Content/ToolCall.tsx b/client/src/components/Chat/Messages/Content/ToolCall.tsx
index 3fa3d84707..830717e784 100644
--- a/client/src/components/Chat/Messages/Content/ToolCall.tsx
+++ b/client/src/components/Chat/Messages/Content/ToolCall.tsx
@@ -433,7 +433,7 @@ export default function ToolCall({
</div>
{showOAuth && (
<div className="flex w-full flex-col gap-2.5">
- <div className="mt-2 mb-1">
+ <div className="mb-1 mt-2">
<Button
className="inline-flex items-center justify-center rounded-xl px-4 py-2 text-sm font-medium"
variant="default"
diff --git a/client/src/components/Chat/Messages/Content/reveal.tsx b/client/src/components/Chat/Messages/Content/reveal.tsx
index f9d4c1f4c2..b436fd6506 100644
--- a/client/src/components/Chat/Messages/Content/reveal.tsx
+++ b/client/src/components/Chat/Messages/Content/reveal.tsx
@@ -127,7 +127,7 @@ export function FailedRevealPill({
<button
type="button"
className={cn(
- 'bg-status-error-subtle text-status-error inline-flex h-5 shrink-0 items-center gap-1 rounded-full border border-transparent px-2 text-xs leading-none font-semibold',
+ 'bg-status-error-subtle text-status-error inline-flex h-5 shrink-0 items-center gap-1 rounded-full border border-transparent px-2 text-xs font-semibold leading-none',
'hover:border-status-error-border focus-visible:border-status-error focus-visible:outline-none',
className,
)}
diff --git a/client/src/components/SidePanel/Agents/MCPToolItem.tsx b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
index a496e9cfc5..e11ab936c2 100644
--- a/client/src/components/SidePanel/Agents/MCPToolItem.tsx
+++ b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
@@ -162,7 +162,7 @@ export default function MCPToolItem({
expanded ? 'opacity-100' : 'opacity-0',
)}
>
- <p className="text-text-secondary max-h-44 overflow-y-auto text-xs leading-relaxed whitespace-pre-wrap">
+ <p className="text-text-secondary max-h-44 overflow-y-auto whitespace-pre-wrap text-xs leading-relaxed">
{description || localize('com_ui_mcp_no_description')}
</p>
</div>
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
index df5ab020a6..8c13d1237f 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
@@ -440,19 +440,19 @@ export default function McpSection({ item }: Props) {
return (
<div className="flex flex-col gap-5">
{item.description && (
- <p className="max-h-40 overflow-y-auto whitespace-pre-wrap text-sm leading-relaxed text-text-secondary">
+ <p className="text-text-secondary max-h-40 overflow-y-auto whitespace-pre-wrap text-sm leading-relaxed">
{item.description}
</p>
)}
<div className="flex flex-col">
- <div className="flex items-center justify-between rounded-xl border border-border-light bg-surface-secondary px-3 py-2.5">
+ <div className="border-border-light bg-surface-secondary flex items-center justify-between rounded-xl border px-3 py-2.5">
<div className="flex items-center gap-2">
<span
className={cn('size-2.5 rounded-full', statusDisplay.dotClass)}
aria-hidden="true"
/>
- <span className="text-sm font-medium text-text-primary">
+ <span className="text-text-primary text-sm font-medium">
{localize(statusDisplay.labelKey, { 0: serverName })}
</span>
</div>
@@ -489,7 +489,7 @@ export default function McpSection({ item }: Props) {
<div className="flex flex-col gap-2">
<div className="flex min-h-7 items-center justify-between">
- <span className="text-[11px] font-medium uppercase tracking-wide text-text-secondary">
+ <span className="text-text-secondary text-[11px] font-medium uppercase tracking-wide">
{localize('com_ui_tools_mcp_tools_section')}
</span>
{(hasTools || runtimeToolsAvailable) && (
@@ -544,9 +544,9 @@ export default function McpSection({ item }: Props) {
programmaticToolsEnabled ||
backgroundToolsEnabled ||
toolIntentsEnabled) && (
- <span className="mx-1 h-4 w-px bg-border-light" aria-hidden="true" />
+ <span className="bg-border-light mx-1 h-4 w-px" aria-hidden="true" />
)}
- <label className="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 text-xs text-text-secondary">
+ <label className="text-text-secondary flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 text-xs">
<Checkbox
checked={hasTools ? allSelected : isWildcardAttached}
onCheckedChange={(checked) =>
@@ -557,7 +557,7 @@ export default function McpSection({ item }: Props) {
? localize('com_ui_tools_mcp_deselect_all')
: localize('com_ui_tools_mcp_select_all')
}
- className="size-4 rounded border border-border-medium"
+ className="border-border-medium size-4 rounded border"
/>
<span>
{(hasTools ? allSelected : isWildcardAttached)
@@ -613,7 +613,7 @@ export default function McpSection({ item }: Props) {
</div>
</Collapse>
<Collapse open={!hasTools && !toolsLoading}>
- <p className="rounded-xl border border-dashed border-border-light p-3 text-center text-xs text-text-tertiary">
+ <p className="border-border-light text-text-tertiary rounded-xl border border-dashed p-3 text-center text-xs">
{localize(runtimeToolsAvailable ? runtimeToolsMessage : 'com_ui_tools_mcp_no_tools')}
</p>
</Collapse>