diff --git a/apps/desktop/src/components/chat/code-card.tsx b/apps/desktop/src/components/chat/code-card.tsx index 0481951b43381..6a5881165d240 100644 --- a/apps/desktop/src/components/chat/code-card.tsx +++ b/apps/desktop/src/components/chat/code-card.tsx @@ -4,15 +4,16 @@ import { Codicon, type CodiconProps } from '@/components/ui/codicon' import { cn } from '@/lib/utils' /** - * Rounded-card shell for fenced code (and any equivalent: diffs, raw payloads, - * etc.) sized for the conversation column. Mirrors the expanded tool-row - * pattern so code blocks read as the same family of artifact. + * Rounded surface for fenced code (and any equivalent: diffs, raw payloads, + * etc.) sized for the conversation column. Background only — no border, no + * header, no language label — so a code block reads as a tinted slab of the + * reply rather than an attached artifact. */ function CodeCard({ className, ...props }: React.ComponentProps<'div'>) { return (
) { ) } -function CodeCardHeader({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
- ) -} - -function CodeCardTitle({ className, children, ...props }: React.ComponentProps<'span'>) { - return ( - - {children} - - ) -} - function CodeCardIcon({ className, ...props }: CodiconProps) { return ( ) { - return ( - - ) -} - function CodeCardBody({ className, ...props }: React.ComponentProps<'div'>) { return (
) { ) } -export { CodeCard, CodeCardBody, CodeCardHeader, CodeCardIcon, CodeCardSubtitle, CodeCardTitle } +export { CodeCard, CodeCardBody, CodeCardIcon } diff --git a/apps/desktop/src/components/chat/expandable-block.tsx b/apps/desktop/src/components/chat/expandable-block.tsx index f4a8e1965298c..7cd6459db30e0 100644 --- a/apps/desktop/src/components/chat/expandable-block.tsx +++ b/apps/desktop/src/components/chat/expandable-block.tsx @@ -44,7 +44,7 @@ export function ExpandableBlock({ children, className }: ExpandableBlockProps) { // both sideways scrolling and text selection. Keep the fade // `pointer-events-none` and pin the only clickable target — a compact // toggle — to the right edge, clear of the draggable scrollbar track. -
+