diff --git a/.gitignore b/.gitignore index 0a545f5..cc0106d 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ yarn-error.log* test.html all_merged.md /.vscode +.claude/settings.local.json diff --git a/components/ai-provider-selector.tsx b/components/ai-provider-selector.tsx index f98e837..b728c79 100644 --- a/components/ai-provider-selector.tsx +++ b/components/ai-provider-selector.tsx @@ -165,7 +165,7 @@ export function AiProviderSelector({ className="md:px-2 md:h-[34px] flex items-center gap-2" > {selectedProvider?.icon} - {selectedProvider?.name} + {selectedProvider?.name} diff --git a/components/chat-header.tsx b/components/chat-header.tsx index 6cf0891..9b90415 100644 --- a/components/chat-header.tsx +++ b/components/chat-header.tsx @@ -51,7 +51,7 @@ function PureChatHeader({ }} > - New Chat + {/* New Chat */} New Chat @@ -68,7 +68,7 @@ function PureChatHeader({ /> )} - {!isReadonly && ( + {!isReadonly && windowWidth >= 768 && ( + {children} ); @@ -92,9 +92,9 @@ export function CodeBlock({ isOneLine ? "p-1" : "p-4" } border border-zinc-200 dark:border-zinc-700 ${ isOneLine ? "rounded-sm" : "rounded-xl" - } dark:text-zinc-50 text-zinc-900`} + } dark:text-zinc-50 text-zinc-900 min-w-0`} > - {children} + {children} ); @@ -104,7 +104,7 @@ export function CodeBlock({
diff --git a/components/markdown.tsx b/components/markdown.tsx index 3c9ad9d..37d0ef9 100644 --- a/components/markdown.tsx +++ b/components/markdown.tsx @@ -1,8 +1,8 @@ -import Link from 'next/link'; -import React, { memo } from 'react'; -import ReactMarkdown, { type Components } from 'react-markdown'; -import remarkGfm from 'remark-gfm'; -import { CodeBlock } from './code-block'; +import Link from "next/link"; +import React, { memo } from "react"; +import ReactMarkdown, { type Components } from "react-markdown"; +import remarkGfm from "remark-gfm"; +import { CodeBlock } from "./code-block"; const components: Partial = { // @ts-expect-error @@ -10,21 +10,21 @@ const components: Partial = { pre: ({ children }) => <>{children}, ol: ({ node, children, ...props }) => { return ( -
    +
      {children}
    ); }, li: ({ node, children, ...props }) => { return ( -
  1. +
  2. {children}
  3. ); }, ul: ({ node, children, ...props }) => { return ( -
      +
        {children}
      ); @@ -51,42 +51,42 @@ const components: Partial = { }, h1: ({ node, children, ...props }) => { return ( -

      +

      {children}

      ); }, h2: ({ node, children, ...props }) => { return ( -

      +

      {children}

      ); }, h3: ({ node, children, ...props }) => { return ( -

      +

      {children}

      ); }, h4: ({ node, children, ...props }) => { return ( -

      +

      {children}

      ); }, h5: ({ node, children, ...props }) => { return ( -
      +
      {children}
      ); }, h6: ({ node, children, ...props }) => { return ( -
      +
      {children}
      ); @@ -105,5 +105,5 @@ const NonMemoizedMarkdown = ({ children }: { children: string }) => { export const Markdown = memo( NonMemoizedMarkdown, - (prevProps, nextProps) => prevProps.children === nextProps.children, + (prevProps, nextProps) => prevProps.children === nextProps.children );