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: Compact Queue Buttons and Restyle Projects and Composer Context Rail (#16772)

Marco Beretta9fe93939f59f
diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx
index 3b1ccc7996..f8e60a6e62 100644
--- a/client/src/components/Chat/Input/ChatForm.tsx
+++ b/client/src/components/Chat/Input/ChatForm.tsx
@@ -791,14 +791,14 @@ const ChatForm = memo(function ChatForm({
<div
data-testid="composer-context-rail"
className={cn(
- 'mx-4 -mb-3 flex min-w-0 flex-wrap items-center gap-1 rounded-t-2xl',
- 'border-border-light bg-surface-secondary border px-2 pt-1 pb-4',
+ 'mx-4 -mb-3 flex min-w-0 flex-wrap items-center gap-1.5 rounded-t-2xl',
+ 'border-border-light bg-surface-secondary border px-2 pt-2 pb-5',
isRTL && 'flex-row-reverse',
)}
>
{project ? <ProjectLandingChip project={project} /> : null}
{codeWorkspace.visible ? (
- <div className="min-w-0 px-1 pt-1">
+ <div className="min-w-0">
<CodeWorkspaceMenu
setConversation={setConversation}
workspace={codeWorkspace}
diff --git a/client/src/components/Chat/Input/CodeApprovalMenu.tsx b/client/src/components/Chat/Input/CodeApprovalMenu.tsx
index cbbf7bde12..946eb2b4d9 100644
--- a/client/src/components/Chat/Input/CodeApprovalMenu.tsx
+++ b/client/src/components/Chat/Input/CodeApprovalMenu.tsx
@@ -1,7 +1,7 @@
import * as Ariakit from '@ariakit/react';
+import { TooltipAnchor } from '@librechat/client';
import { useQueryClient } from '@tanstack/react-query';
import { QueryKeys, Constants } from 'librechat-data-provider';
-import { TooltipAnchor, composerControlClasses } from '@librechat/client';
import { Check, ChevronDown, FilePen, FileQuestionMark, FileTerminal } from 'lucide-react';
import type { CodeApprovalMode, TConversation } from 'librechat-data-provider';
import type { LucideIcon } from 'lucide-react';
@@ -9,6 +9,7 @@ import type { SetterOrUpdater } from 'recoil';
import type { TranslationKeys } from '~/hooks';
import { useCodeApprovalModePreference } from '~/hooks/Agents/codeApprovalPreference';
import { useCodeApprovalMode, useLocalize } from '~/hooks';
+import { chipClasses } from './chip';
import { cn } from '~/utils';
/** The modes answer one question — what may happen to the workspace without the
@@ -101,8 +102,7 @@ export default function CodeApprovalMenu({
modeOptions[selected].label,
)}`}
className={cn(
- composerControlClasses(),
- 'md:px-theme-control-x max-w-full min-w-0 px-2.5',
+ chipClasses,
isOpen && 'bg-surface-hover',
disabled && 'cursor-not-allowed opacity-50',
)}
@@ -126,8 +126,8 @@ export default function CodeApprovalMenu({
gutter={8}
unmountOnHide={true}
className={cn(
- 'z-50 flex max-w-[min(320px,calc(100vw-2rem))] min-w-[280px] flex-col rounded-xl',
- 'border-border-light bg-presentation max-h-[var(--popover-available-height)] overflow-y-auto border p-1.5 shadow-lg',
+ 'z-50 flex max-w-[min(320px,calc(100vw-2rem))] min-w-[260px] flex-col rounded-2xl',
+ 'border-border-light bg-presentation max-h-[var(--popover-available-height)] overflow-y-auto border p-1 shadow-lg',
'origin-bottom opacity-0 transition-[opacity,transform] duration-200 ease-out',
'data-[enter]:scale-100 data-[enter]:opacity-100',
'scale-95 data-[leave]:scale-95 data-[leave]:opacity-0',
@@ -136,7 +136,7 @@ export default function CodeApprovalMenu({
{/* Names the menu without adding an `h1` to the page outline. */}
<Ariakit.MenuHeading
render={<div />}
- className="text-text-secondary px-2.5 py-1.5 text-xs font-medium"
+ className="text-text-secondary px-2.5 pt-2 pb-1 text-xs font-semibold"
>
{localize('com_ui_code_approval_mode')}
</Ariakit.MenuHeading>
@@ -152,7 +152,7 @@ export default function CodeApprovalMenu({
hideOnClick={true}
onChange={() => selectMode(mode)}
className={cn(
- 'group flex w-full cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2',
+ 'group flex w-full cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-1.5',
'duration-theme-fast outline-hidden transition-colors',
'hover:bg-surface-hover data-[active-item]:bg-surface-hover',
isSelected && 'bg-surface-active-alt',
diff --git a/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx b/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx
index 55be91068e..d3636f9580 100644
--- a/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx
+++ b/client/src/components/Chat/Input/CodeWorkspaceMenu.tsx
@@ -1,11 +1,6 @@
import { Fragment, useId, useState } from 'react';
import * as Ariakit from '@ariakit/react';
-import {
- CheckboxGlyph,
- TooltipAnchor,
- composerControlClasses,
- useToastContext,
-} from '@librechat/client';
+import { CheckboxGlyph, TooltipAnchor, useToastContext } from '@librechat/client';
import {
isCodeWorkspaceCheckoutAvailable,
isLinkedWorktreeRoutingAllowed,
@@ -41,6 +36,7 @@ import {
getCodeWorkspaceErrorReason,
getResponseStatus,
} from '~/utils';
+import { chipClasses, infoChipClasses } from './chip';
import { useLocalize } from '~/hooks';
const stateLabels: Partial<Record<CodeWorkspaceResult['state'], TranslationKeys>> = {
@@ -53,10 +49,10 @@ const stateLabels: Partial<Record<CodeWorkspaceResult['state'], TranslationKeys>
without_attached: 'com_ui_code_workspace_without_attached',
};
-const headingClasses = 'px-2.5 py-1.5 text-xs font-medium text-text-secondary';
+const headingClasses = 'px-2.5 pt-2 pb-1 text-xs font-semibold text-text-secondary';
const menuClasses = cn(
- 'z-50 flex max-w-[min(360px,calc(100vw-2rem))] min-w-[280px] flex-col rounded-xl',
- 'border-border-light bg-presentation max-h-[var(--popover-available-height)] overflow-y-auto border p-1.5 shadow-lg',
+ 'z-50 flex max-w-[min(360px,calc(100vw-2rem))] min-w-[260px] flex-col rounded-2xl',
+ 'border-border-light bg-presentation max-h-[var(--popover-available-height)] overflow-y-auto border p-1 shadow-lg',
'origin-bottom opacity-0 transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none',
'data-[enter]:scale-100 data-[enter]:opacity-100',
'scale-95 data-[leave]:scale-95 data-[leave]:opacity-0',
@@ -64,7 +60,7 @@ const menuClasses = cn(
const menuItemClasses = (selected = false) =>
cn(
- 'group flex w-full cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2',
+ 'group flex w-full cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-1.5',
'outline-hidden transition-colors duration-theme-fast',
'hover:bg-surface-hover data-[active-item]:bg-surface-hover',
selected && 'bg-surface-active-alt',
@@ -321,7 +317,7 @@ function GitContext({
{descriptor.environment?.ref && (
<TooltipAnchor
description={localize('com_ui_code_branch_info')}
- render={<span className={cn(composerControlClasses(), 'max-w-full min-w-0 px-2.5')} />}
+ render={<span className={cn(infoChipClasses, 'max-w-full min-w-0')} />}
>
<GitBranch className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
<span
@@ -344,10 +340,7 @@ function GitContext({
aria-label={localize('com_ui_code_worktree')}
aria-checked={checkout == null ? 'mixed' : checkout === 'isolated'}
disabled={disabled || !checkoutEditable}
- className={cn(
- composerControlClasses(),
- 'px-2.5 disabled:cursor-not-allowed disabled:opacity-50',
- )}
+ className={cn(chipClasses, 'disabled:cursor-not-allowed disabled:opacity-50')}
onClick={() => {
if (target.selected == null || !checkoutEditable) return;
onSelect?.({
@@ -370,7 +363,7 @@ function GitContext({
{showLinkedWorktrees && (
<TooltipAnchor
description={localize('com_ui_code_linked_worktrees_info')}
- render={<span className={cn(composerControlClasses(), 'px-2.5')} />}
+ render={<span className={chipClasses} />}
>
<GitFork className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
<span>{localize('com_ui_code_linked_worktrees')}</span>
@@ -461,7 +454,7 @@ export default function CodeWorkspaceMenu({
</span>
<button
type="button"
- className={composerControlClasses()}
+ className={chipClasses}
disabled={disabled || pending || reconcileMutation.isLoading}
onClick={() => reconcileMutation.mutate(request)}
>
@@ -680,10 +673,7 @@ export default function CodeWorkspaceMenu({
return (
<div className="flex min-w-0 flex-wrap items-center gap-2">
{onlyEnvironment != null && workspace.mode !== 'without_attached' && (
- <span
- data-testid="code-machine-status"
- className={cn(composerControlClasses(), 'max-w-full min-w-0 px-2.5')}
- >
+ <span data-testid="code-machine-status" className={cn(chipClasses, 'max-w-full min-w-0')}>
<Monitor className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
<span className="max-w-[12rem] min-w-0 truncate">
{onlyEnvironment.environment.name ?? onlyEnvironment.environment.id}
@@ -705,7 +695,7 @@ export default function CodeWorkspaceMenu({
aria-label={`${label}. ${recovery}. ${localize('com_ui_retry')}`}
aria-describedby={requirements.length > 0 ? requirementsId : undefined}
aria-busy={isRefreshing}
- className={cn(composerControlClasses(), 'max-w-full min-w-0 px-2.5')}
+ className={cn(chipClasses, 'max-w-full min-w-0')}
/>
}
>
@@ -752,10 +742,7 @@ export default function CodeWorkspaceMenu({
return (
<div className="flex min-w-0 flex-wrap items-center gap-2">
{workspace.locked && onlyEnvironment != null && workspace.mode !== 'without_attached' && (
- <span
- data-testid="code-machine-status"
- className={cn(composerControlClasses(), 'max-w-full min-w-0 px-2.5')}
- >
+ <span data-testid="code-machine-status" className={cn(chipClasses, 'max-w-full min-w-0')}>
<Monitor className="text-text-secondary size-4 shrink-0" aria-hidden="true" />
<span className="max-w-[12rem] min-w-0 truncate">
{onlyEnvironment.environment.name ?? onlyEnvironment.environment.id}
@@ -772,8 +759,8 @@ export default function CodeWorkspaceMenu({
disabled={buttonDisabled}
aria-label={`${localize('com_ui_code_machine')}: ${machineLabel}`}
className={cn(
- composerControlClasses(),
- 'max-w-full min-w-0 px-2.5',
+ chipClasses,
+ 'max-w-full min-w-0',
machineMenuOpen && 'bg-surface-hover',
)}
/>
@@ -843,8 +830,8 @@ export default function CodeWorkspaceMenu({
: `${buttonLabel}. ${transitionText.info}`
}
className={cn(
- composerControlClasses(),
- 'md:px-theme-control-x max-w-full min-w-0 px-2.5',
+ chipClasses,
+ 'max-w-full min-w-0',
isOpen && 'bg-surface-hover',
buttonDisabled && 'cursor-not-allowed opacity-50',
)}
diff --git a/client/src/components/Chat/Input/Composer/Queue.tsx b/client/src/components/Chat/Input/Composer/Queue.tsx
index f744e564e5..5e49b2164d 100644
--- a/client/src/components/Chat/Input/Composer/Queue.tsx
+++ b/client/src/components/Chat/Input/Composer/Queue.tsx
@@ -498,7 +498,7 @@ function QueueRow({
render={
<IconButton
label={localize('com_ui_more_options')}
- size="lg"
+ size="sm"
shape="control"
data-testid="queued-message-options"
disabled={actionPending}
@@ -526,7 +526,7 @@ function QueueRow({
? 'com_ui_dismiss_unconfirmed_delivery'
: 'com_ui_remove_queued',
)}
- size="lg"
+ size="sm"
shape="control"
disabled={removeDisabled}
onClick={
@@ -567,7 +567,7 @@ function QueueRow({
transition={reduceMotion ? { duration: 0 } : ROW_TRANSITION}
className="border-border-light overflow-hidden border-b text-sm last:border-b-0"
>
- <div className="flex min-h-14 items-center gap-2 px-3 py-2">
+ <div className="flex min-h-11 items-center gap-1.5 px-2.5 py-1.5">
<IconButton
ref={gripRef}
label={localize('com_ui_queue_reorder', {
@@ -658,6 +658,7 @@ function QueueRow({
<>
<Button
variant="outline"
+ size="xs"
shape="theme"
disabled={sendDisabled}
aria-disabled={sendDisabled}
@@ -674,7 +675,7 @@ function QueueRow({
{showEscalate && (
<EscalateNowButton
surface="queued"
- size="lg"
+ size="sm"
shape="control"
messageText={message.text}
disabled={
diff --git a/client/src/components/Chat/Input/EscalateNowButton.tsx b/client/src/components/Chat/Input/EscalateNowButton.tsx
index 09dd899994..e677d30470 100644
--- a/client/src/components/Chat/Input/EscalateNowButton.tsx
+++ b/client/src/components/Chat/Input/EscalateNowButton.tsx
@@ -96,7 +96,7 @@ interface EscalateNowButtonProps {
disabled: boolean;
messageText: string;
/** The queued rail uses the taller control height; the thread bubble keeps the compact one. */
- size?: 'xs' | 'md' | 'lg';
+ size?: 'xs' | 'sm' | 'md' | 'lg';
shape?: 'round' | 'square' | 'control';
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
}
diff --git a/client/src/components/Chat/Input/__tests__/CodeApprovalMenu.spec.tsx b/client/src/components/Chat/Input/__tests__/CodeApprovalMenu.spec.tsx
index 0e4f248122..3c72ae09a0 100644
--- a/client/src/components/Chat/Input/__tests__/CodeApprovalMenu.spec.tsx
+++ b/client/src/components/Chat/Input/__tests__/CodeApprovalMenu.spec.tsx
@@ -116,12 +116,13 @@ describe('CodeApprovalMenu', () => {
test('draws the trigger from the shared composer control appearance', () => {
renderMenu();
- expect(screen.getByTestId('code-approval-mode')).toHaveClass(
- 'h-theme-control',
- 'rounded-theme-control-round',
- 'gap-theme-control-gap',
- 'border-border-medium',
- );
+ const trigger = screen.getByTestId('code-approval-mode');
+ expect(trigger).toHaveClass('rounded-theme-control-round', 'border-border-medium');
+ /** The context rail's compact pill overrides the control's height and gap, and the
+ * theme-aware merge must drop the theme-token pair it replaces rather than keep both. */
+ expect(trigger).toHaveClass('h-8', 'gap-1.5');
+ expect(trigger).not.toHaveClass('h-theme-control');
+ expect(trigger).not.toHaveClass('gap-theme-control-gap');
});
test('offers only the modes the conversation allows', async () => {
diff --git a/client/src/components/Chat/Input/__tests__/CodeWorkspaceMenu.spec.tsx b/client/src/components/Chat/Input/__tests__/CodeWorkspaceMenu.spec.tsx
index 9f71871000..64855e1715 100644
--- a/client/src/components/Chat/Input/__tests__/CodeWorkspaceMenu.spec.tsx
+++ b/client/src/components/Chat/Input/__tests__/CodeWorkspaceMenu.spec.tsx
@@ -33,8 +33,9 @@ jest.mock('~/hooks', () => ({
}));
jest.mock('@librechat/client', () => {
- const { CheckboxGlyph, TooltipAnchor } = jest.requireActual('@librechat/client');
+ const { CheckboxGlyph, TooltipAnchor, cn } = jest.requireActual('@librechat/client');
return {
+ cn,
CheckboxGlyph,
composerControlClasses: () => 'composer-control',
useToastContext: () => ({ showToast: mockShowToast }),
diff --git a/client/src/components/Chat/Input/__tests__/appearanceTokens.spec.ts b/client/src/components/Chat/Input/__tests__/appearanceTokens.spec.ts
index 42a23ab855..1661ab8ea8 100644
--- a/client/src/components/Chat/Input/__tests__/appearanceTokens.spec.ts
+++ b/client/src/components/Chat/Input/__tests__/appearanceTokens.spec.ts
@@ -14,7 +14,10 @@ const themedControls = [
['DuringRunSendButton.tsx', ['composerSubmitClasses()']],
['TokenUsage/Popover.tsx', ['size-theme-control', 'rounded-theme-control-round']],
['Files/AttachFile.tsx', ['size-theme-control', 'rounded-theme-control-round']],
- ['CodeApprovalMenu.tsx', ['composerControlClasses()', 'md:px-theme-control-x']],
+ /** The context rail's pills share one recipe built on the composer control classes. */
+ ['chip.ts', ['composerControlClasses()']],
+ ['CodeApprovalMenu.tsx', ['chipClasses']],
+ ['CodeWorkspaceMenu.tsx', ['chipClasses', 'infoChipClasses']],
] as const;
describe('Composer appearance tokens', () => {
diff --git a/client/src/components/Chat/Input/chip.ts b/client/src/components/Chat/Input/chip.ts
new file mode 100644
index 0000000000..b1a84ee366
--- /dev/null
+++ b/client/src/components/Chat/Input/chip.ts
@@ -0,0 +1,15 @@
+import { cn, composerControlClasses } from '@librechat/client';
+
+/** One compact pill for every control in the composer's context rail (project, machine,
+ * workspace, branch, worktree, approval mode), so the rail reads as a single set. */
+export const chipClasses = cn(
+ composerControlClasses(),
+ 'h-8 max-w-full min-w-0 gap-1.5 px-2.5 text-xs',
+ 'focus-visible:ring-2 focus-visible:ring-text-primary focus-visible:outline-hidden',
+);
+
+/** Read-only facts (branch) drop the border and sit on a quiet fill so they do not look pressable. */
+export const infoChipClasses = cn(
+ chipClasses,
+ 'border-transparent bg-surface-tertiary text-text-secondary hover:bg-surface-tertiary',
+);
diff --git a/client/src/components/Chat/ProjectLandingChip.tsx b/client/src/components/Chat/ProjectLandingChip.tsx
index b343783a0a..337e15f750 100644
--- a/client/src/components/Chat/ProjectLandingChip.tsx
+++ b/client/src/components/Chat/ProjectLandingChip.tsx
@@ -53,7 +53,7 @@ export default function ProjectLandingChip({ project }: { project: TChatProject
);
return (
- <div className="flex items-center gap-0.5 px-2.5 pt-2">
+ <div className="flex items-center gap-0.5">
<ControlCombobox
selectId="project-landing-select"
selectedValue={project._id}
@@ -83,7 +83,7 @@ export default function ProjectLandingChip({ project }: { project: TChatProject
type="button"
aria-label={localize('com_ui_remove_from_project')}
onClick={() => applyProject(null)}
- className="text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary flex h-8 w-8 shrink-0 items-center justify-center rounded-full outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-inset"
+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary flex size-8 shrink-0 items-center justify-center rounded-full outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-inset"
>
<X className="h-3.5 w-3.5" aria-hidden="true" />
</button>
diff --git a/client/src/components/Projects/ProjectBadge.tsx b/client/src/components/Projects/ProjectBadge.tsx
index 19d4aece10..02907e172e 100644
--- a/client/src/components/Projects/ProjectBadge.tsx
+++ b/client/src/components/Projects/ProjectBadge.tsx
@@ -13,7 +13,7 @@ function ProjectBadge({ projectId }: { projectId: string }) {
<div className="pointer-events-none absolute inset-x-0 top-12 z-5 flex justify-center px-3 md:top-14">
<Link
to={`/projects/${encodeURIComponent(projectId)}`}
- className="border-border-light bg-surface-secondary text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary pointer-events-auto inline-flex max-w-full items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
+ className="border-border-light bg-surface-secondary text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary pointer-events-auto inline-flex h-7 max-w-full items-center gap-1.5 rounded-full border pr-3 pl-2.5 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
aria-label={localize('com_ui_project_open_workspace', { name })}
>
<Folder className="size-3.5 shrink-0" aria-hidden="true" />
diff --git a/client/src/components/Projects/ProjectWorkspace.tsx b/client/src/components/Projects/ProjectWorkspace.tsx
index 802fb8da39..6a32d57721 100644
--- a/client/src/components/Projects/ProjectWorkspace.tsx
+++ b/client/src/components/Projects/ProjectWorkspace.tsx
@@ -212,8 +212,8 @@ export default function ProjectWorkspace() {
) : (
<div className="min-w-0">
<div className="flex min-w-0 items-start gap-4">
- <span className="bg-surface-secondary text-text-secondary flex size-12 shrink-0 items-center justify-center rounded-2xl">
- <Folder className="size-6" aria-hidden="true" />
+ <span className="bg-surface-secondary text-text-secondary flex size-10 shrink-0 items-center justify-center rounded-xl">
+ <Folder className="size-5" aria-hidden="true" />
</span>
<h1 className="min-w-0 flex-1">
<Button
@@ -221,9 +221,9 @@ export default function ProjectWorkspace() {
type="button"
variant="inline-edit"
onClick={() => startEditing('name')}
- className="min-h-12 w-full min-w-0"
+ className="min-h-10 w-full min-w-0"
>
- <span className="line-clamp-2 min-w-0 text-2xl font-semibold tracking-tight wrap-anywhere md:line-clamp-1">
+ <span className="line-clamp-2 min-w-0 text-xl font-semibold tracking-tight wrap-anywhere md:line-clamp-1">
{project.name}
</span>
<span className="sr-only">, {localize('com_ui_project_edit_name')}</span>
@@ -247,7 +247,7 @@ export default function ProjectWorkspace() {
const instructionsSection = (
<section
- className="border-border-light bg-surface-secondary flex h-full min-h-0 min-w-0 flex-col rounded-2xl border p-4 sm:p-5"
+ className="border-border-light bg-surface-secondary flex h-full min-h-0 min-w-0 flex-col rounded-2xl border p-4"
aria-labelledby="project-instructions-heading"
>
<div className="mb-3 flex items-center justify-between gap-2">
@@ -365,7 +365,7 @@ export default function ProjectWorkspace() {
return (
<main className="bg-surface-primary-alt text-text-primary flex h-full min-h-0 min-w-0 flex-col">
<header className="border-border-light bg-surface-primary-alt sticky top-0 z-10 border-b">
- <div className="flex h-14 w-full items-center gap-2 px-4 md:h-16 md:px-6">
+ <div className="flex h-14 w-full items-center gap-2 px-4 md:px-6">
{isSmallScreen ? <OpenSidebar className="size-9 shrink-0" /> : null}
<Button
type="button"
@@ -380,6 +380,7 @@ export default function ProjectWorkspace() {
<Button
type="button"
size="sm"
+ shape="round"
className="ml-auto shrink-0"
variant="default"
onClick={startProjectChat}
diff --git a/client/src/components/Projects/ProjectsNavBar.tsx b/client/src/components/Projects/ProjectsNavBar.tsx
index eabbc12ed0..b8d633b1aa 100644
--- a/client/src/components/Projects/ProjectsNavBar.tsx
+++ b/client/src/components/Projects/ProjectsNavBar.tsx
@@ -15,7 +15,7 @@ export default function ProjectsNavBar({ onCreate, search, onSearchChange }: Pro
const isSmallScreen = useDrawerViewport();
return (
<header className="border-border-light bg-surface-primary-alt sticky top-0 z-10 border-b">
- <div className="flex min-h-14 w-full flex-wrap items-center gap-2 px-4 py-2.5 md:min-h-16 md:flex-nowrap md:px-6">
+ <div className="flex min-h-14 w-full flex-wrap items-center gap-3 px-4 py-2.5 md:flex-nowrap md:px-6">
{isSmallScreen ? <OpenSidebar className="size-9 shrink-0" /> : null}
<h1 className="sr-only">{localize('com_ui_projects')}</h1>
<FilterInput
@@ -27,7 +27,14 @@ export default function ProjectsNavBar({ onCreate, search, onSearchChange }: Pro
containerClassName="order-last w-full min-w-0 md:order-none md:w-auto md:max-w-md md:flex-1"
/>
<div className="ml-auto flex shrink-0 items-center gap-2">
- <Button type="button" variant="default" size="sm" onClick={onCreate} className="shrink-0">
+ <Button
+ type="button"
+ variant="default"
+ size="sm"
+ shape="round"
+ onClick={onCreate}
+ className="shrink-0"
+ >
<Plus className="size-4" aria-hidden="true" />
{localize('com_ui_new_project')}
</Button>
diff --git a/client/src/components/Projects/ProjectsSortMenu.tsx b/client/src/components/Projects/ProjectsSortMenu.tsx
index 8073077851..0a16b455ec 100644
--- a/client/src/components/Projects/ProjectsSortMenu.tsx
+++ b/client/src/components/Projects/ProjectsSortMenu.tsx
@@ -73,13 +73,13 @@ export default function ProjectsSortMenu({ sortBy, onSortChange }: ProjectsSortM
<Ariakit.MenuButton
aria-label={localize('com_ui_sort_projects_by')}
className={cn(
- 'text-text-secondary inline-flex h-8 shrink-0 items-center justify-center gap-2 rounded-lg px-2 text-sm font-medium transition-colors',
+ 'border-border-light text-text-secondary inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-full border px-3 text-xs font-medium transition-colors',
'hover:bg-surface-hover hover:text-text-primary',
'focus-visible:ring-text-primary focus-visible:ring-2 focus-visible:outline-hidden',
isOpen && 'bg-surface-hover text-text-primary',
)}
>
- <ArrowUpDown className="size-4 shrink-0" aria-hidden="true" />
+ <ArrowUpDown className="size-3.5 shrink-0" aria-hidden="true" />
<span className="truncate">{selectedSortLabel}</span>
</Ariakit.MenuButton>
}
diff --git a/client/src/components/Projects/ProjectsView.tsx b/client/src/components/Projects/ProjectsView.tsx
index 334d0eee85..635fd3143f 100644
--- a/client/src/components/Projects/ProjectsView.tsx
+++ b/client/src/components/Projects/ProjectsView.tsx
@@ -77,8 +77,8 @@ function ProjectCard({
return (
<article
className={cn(
- 'group/project border-border-light bg-surface-secondary relative flex min-h-[9.5rem] max-w-full min-w-0 flex-col rounded-2xl border',
- 'hover:bg-surface-hover transition-colors duration-150 ease-out',
+ 'group/project border-border-light bg-surface-secondary relative flex min-h-[8.5rem] max-w-full min-w-0 flex-col rounded-2xl border',
+ 'hover:border-border-medium hover:bg-surface-hover transition-colors duration-150 ease-out motion-reduce:transition-none',
isMenuOpen && 'bg-surface-hover',
)}
>
@@ -86,13 +86,13 @@ function ProjectCard({
type="button"
variant="card"
size="tile"
- className="min-h-[9.5rem] w-full max-w-full min-w-0 flex-1 flex-col items-stretch"
+ className="min-h-[8.5rem] w-full max-w-full min-w-0 flex-1 flex-col items-stretch"
onClick={() => onOpen(project._id)}
>
- <span className="bg-surface-tertiary text-text-secondary group-hover/project:text-text-primary flex h-11 w-11 shrink-0 items-center justify-center rounded-xl transition-colors">
- <Folder className="h-5 w-5" aria-hidden="true" />
+ <span className="bg-surface-tertiary text-text-secondary group-hover/project:text-text-primary flex size-9 shrink-0 items-center justify-center rounded-xl transition-colors">
+ <Folder className="size-4" aria-hidden="true" />
</span>
- <span className="text-text-primary mt-3 line-clamp-2 max-w-full min-w-0 text-base font-semibold tracking-tight wrap-anywhere md:line-clamp-1">
+ <span className="text-text-primary mt-2.5 line-clamp-2 max-w-full min-w-0 text-sm font-semibold tracking-tight wrap-anywhere md:line-clamp-1">
{project.name}
</span>
{project.description ? (
@@ -100,7 +100,7 @@ function ProjectCard({
{project.description}
</span>
) : null}
- <span className="text-text-secondary mt-auto flex max-w-full min-w-0 items-center gap-2 pt-4 text-xs tabular-nums">
+ <span className="text-text-secondary mt-auto flex max-w-full min-w-0 items-center gap-2 pt-3 text-xs tabular-nums">
<span>
{project.conversationCount === 1
? localize('com_ui_project_chat_count_single')
@@ -162,13 +162,13 @@ function ProjectCard({
function ProjectGridSkeleton() {
return (
- <div className="grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-3" aria-hidden="true">
+ <div className="grid grid-cols-[repeat(auto-fill,minmax(16rem,1fr))] gap-3" aria-hidden="true">
{Array.from({ length: 6 }, (_, index) => (
<div
key={index}
- className="bg-surface-secondary flex min-h-[9.5rem] flex-col rounded-2xl p-4"
+ className="bg-surface-secondary flex min-h-[8.5rem] flex-col rounded-2xl p-4"
>
- <Skeleton className="h-11 w-11 rounded-xl" />
+ <Skeleton className="size-9 rounded-xl" />
<Skeleton className="mt-3 h-5 w-2/3" />
<Skeleton className="mt-2 h-4 w-full" />
<Skeleton className="mt-auto h-3 w-24" />
@@ -271,7 +271,7 @@ export default function ProjectsView() {
<div className="mt-4 flex flex-1 flex-col">
{isLoading && <ProjectGridSkeleton />}
{!isLoading && projects.length > 0 && (
- <div className="grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-3">
+ <div className="grid grid-cols-[repeat(auto-fill,minmax(16rem,1fr))] gap-3">
{projects.map((project) => (
<ProjectCard
key={project._id}