diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index 3e6acabdb3c..42c232efd2f 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -860,7 +860,10 @@ const ChatForm = memo(function ChatForm({ a warning rather than a quiet mode hint. The contrast modes take it opaque, because that is the only way it clears the 3:1 non-text floor there. */ - isTemporary && 'border-series-6/50 bg-series-6/10 high-contrast:border-series-6', + /** The tint layers over the opaque chat surface instead of replacing it, so the + * context rail tucked under the composer never shows through. */ + isTemporary && + 'border-series-6/50 from-series-6/10 to-series-6/10 high-contrast:border-series-6 bg-linear-to-b', )} > diff --git a/client/src/components/Chat/Input/CodeApprovalMenu.tsx b/client/src/components/Chat/Input/CodeApprovalMenu.tsx index e28e8c3fd15..73f88bde4ef 100644 --- a/client/src/components/Chat/Input/CodeApprovalMenu.tsx +++ b/client/src/components/Chat/Input/CodeApprovalMenu.tsx @@ -7,9 +7,9 @@ import type { TConversation, CodeApprovalMode, CodeEnvironmentMode } from 'libre import type { LucideIcon } from 'lucide-react'; import type { SetterOrUpdater } from 'recoil'; import type { TranslationKeys } from '~/hooks'; +import { chipClasses, chipMenuClasses, chipMenuItemClasses, chipMenuHeadingClasses } from './chip'; 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 @@ -100,7 +100,9 @@ export default function CodeApprovalMenu({ - + {/* Names the menu without adding an `h1` to the page outline. */} - } - className="text-text-secondary px-2.5 pt-2 pb-1 text-xs font-semibold" - > + } className={chipMenuHeadingClasses}> {localize('com_ui_code_approval_mode')} {modes.map((mode) => { @@ -158,12 +146,7 @@ export default function CodeApprovalMenu({ checked={isSelected} hideOnClick={true} onChange={() => selectMode(mode)} - className={cn( - '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', - )} + className={cn(chipMenuItemClasses(isSelected), 'items-start')} >