Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

feat: tool UI enhancement

Louis9767c47c2f73
diff --git a/web-app/src/ai-elements/code-block.tsx b/web-app/src/ai-elements/code-block.tsx
index 00d781fff..2a9134ab1 100644
--- a/web-app/src/ai-elements/code-block.tsx
+++ b/web-app/src/ai-elements/code-block.tsx
@@ -40,7 +40,6 @@ const lineNumberTransformer: ShikiTransformer = {
"min-w-10",
"mr-4",
"text-right",
- "select-none",
"text-muted-foreground",
],
},
@@ -102,7 +101,7 @@ export const CodeBlock = ({
<CodeBlockContext.Provider value={{ code }}>
<div
className={cn(
- "group relative w-full overflow-hidden rounded-md border border-main-view-fg/10 bg-background text-foreground",
+ "group relative w-full overflow-hidden bg-background text-foreground",
className,
)}
{...props}
@@ -124,6 +123,7 @@ export const CodeBlock = ({
</div>
)}
</div>
+ {/* <CodeBlockCopyButton className="absolute top-0 right-0"/> */}
</div>
</CodeBlockContext.Provider>
);
diff --git a/web-app/src/ai-elements/tool.tsx b/web-app/src/ai-elements/tool.tsx
index 31ff70418..f3be90934 100644
--- a/web-app/src/ai-elements/tool.tsx
+++ b/web-app/src/ai-elements/tool.tsx
@@ -1,179 +1,187 @@
/* eslint-disable react-hooks/set-state-in-effect */
-import { useControllableState } from '@radix-ui/react-use-controllable-state';
+import { useControllableState } from '@radix-ui/react-use-controllable-state'
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
-} from "../ui/collapsible";
-import { cn } from "../lib/utils";
-import type { ToolUIPart } from "ai";
+} from '../ui/collapsible'
+import { cn } from '../lib/utils'
+import type { ToolUIPart } from 'ai'
+import { ChevronDownIcon, WrenchIcon } from 'lucide-react'
+import type { ComponentProps, ReactNode } from 'react'
import {
- ChevronDownIcon,
- WrenchIcon,
-} from "lucide-react";
-import type { ComponentProps, ReactNode } from "react";
-import { createContext, isValidElement, memo, useContext, useEffect, useMemo, useState } from "react";
-import { CodeBlock } from "./code-block";
+ createContext,
+ isValidElement,
+ memo,
+ useContext,
+ useEffect,
+ useMemo,
+ useState,
+} from 'react'
+import { CodeBlock } from './code-block'
type ToolContextValue = {
- isOpen: boolean;
- setIsOpen: (open: boolean) => void;
- state: ToolUIPart["state"];
-};
+ isOpen: boolean
+ setIsOpen: (open: boolean) => void
+ state: ToolUIPart['state']
+}
-const ToolContext = createContext<ToolContextValue | null>(null);
+const ToolContext = createContext<ToolContextValue | null>(null)
export const useTool = () => {
- const context = useContext(ToolContext);
+ const context = useContext(ToolContext)
if (!context) {
- throw new Error('Tool components must be used within Tool');
+ throw new Error('Tool components must be used within Tool')
}
- return context;
-};
+ return context
+}
export type ToolProps = ComponentProps<typeof Collapsible> & {
- className?: string;
- state: ToolUIPart["state"];
- open?: boolean;
- defaultOpen?: boolean;
- onOpenChange?: (open: boolean) => void;
-};
-
-export const Tool = memo(({
- className,
- state,
- open,
- defaultOpen = false,
- onOpenChange,
- children,
- ...props
-}: ToolProps) => {
- const [isOpen, setIsOpen] = useControllableState({
- prop: open,
- defaultProp: defaultOpen,
- onChange: onOpenChange,
- });
-
- const handleOpenChange = (newOpen: boolean) => {
- setIsOpen(newOpen);
- };
+ className?: string
+ state: ToolUIPart['state']
+ open?: boolean
+ defaultOpen?: boolean
+ onOpenChange?: (open: boolean) => void
+}
+
+export const Tool = memo(
+ ({
+ className,
+ state,
+ open,
+ defaultOpen = false,
+ onOpenChange,
+ children,
+ ...props
+ }: ToolProps) => {
+ const [isOpen, setIsOpen] = useControllableState({
+ prop: open,
+ defaultProp: defaultOpen,
+ onChange: onOpenChange,
+ })
+
+ const handleOpenChange = (newOpen: boolean) => {
+ setIsOpen(newOpen)
+ }
- return (
- <ToolContext.Provider value={{ isOpen, setIsOpen, state }}>
- <Collapsible
- className={cn("not-prose", className)}
- onOpenChange={handleOpenChange}
- open={isOpen}
- {...props}
- >
- {children}
- </Collapsible>
- </ToolContext.Provider>
- );
-});
+ return (
+ <ToolContext.Provider value={{ isOpen, setIsOpen, state }}>
+ <Collapsible
+ className={cn('not-prose', className)}
+ onOpenChange={handleOpenChange}
+ open={isOpen}
+ {...props}
+ >
+ {children}
+ </Collapsible>
+ </ToolContext.Provider>
+ )
+ }
+)
export type ToolHeaderProps = {
- title?: string;
- type: ToolUIPart["type"];
- className?: string;
-};
+ title?: string
+ type: ToolUIPart['type']
+ className?: string
+}
-const getStatusText = (status: ToolUIPart["state"], toolName: string) => {
- const isRunning = status === "input-streaming" || status === "input-available";
+const getStatusText = (status: ToolUIPart['state'], toolName: string) => {
+ const isRunning = status === 'input-streaming' || status === 'input-available'
// @ts-expect-error state only available in AI SDK v6
- const hasError = status === "output-error" || status === "output-denied";
+ const hasError = status === 'output-error' || status === 'output-denied'
if (isRunning) {
- return `Running ${toolName}...`;
+ return `Running ${toolName}...`
}
if (hasError) {
- return `${toolName} failed`;
+ return `${toolName} failed`
}
- return `Used ${toolName}`;
-};
+ return `Used ${toolName.replace('_', ' ')}`
+}
-export const ToolHeader = memo(({
- className,
- title,
- type,
-}: ToolHeaderProps) => {
- const { isOpen, state } = useTool();
- const toolName = title ?? type.split("-").slice(1).join("-");
+export const ToolHeader = memo(
+ ({ className, title, type }: ToolHeaderProps) => {
+ const { isOpen, state } = useTool()
+ const toolName = title ?? type.split('-').slice(1).join('-')
- return (
- <CollapsibleTrigger
- className={cn(
- "flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors",
- className,
- )}
- >
- <WrenchIcon className="size-4" />
- <span>{getStatusText(state, toolName)}</span>
- <ChevronDownIcon
+ return (
+ <CollapsibleTrigger
className={cn(
- "size-4 transition-transform",
- isOpen ? "rotate-180" : "rotate-0"
+ 'flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors capitalize',
+ className
)}
- />
- </CollapsibleTrigger>
- );
-});
-
-export type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
-
-export const ToolContent = memo(({ className, children, ...props }: ToolContentProps) => (
- <CollapsibleContent
- className={cn(
- "mt-4 text-sm relative",
- "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
- className
- )}
- {...props}
- >
- <div className="ml-2 pl-4 border-l-2 border-dashed border-main-view-fg/10">
- {children}
- </div>
- </CollapsibleContent>
-));
+ >
+ <WrenchIcon className="size-4" />
+ <span>{getStatusText(state, toolName)}</span>
+ <ChevronDownIcon
+ className={cn(
+ 'size-4 transition-transform',
+ isOpen ? 'rotate-180' : 'rotate-0'
+ )}
+ />
+ </CollapsibleTrigger>
+ )
+ }
+)
-export type ToolInputProps = ComponentProps<"div"> & {
- input: ToolUIPart["input"];
-};
+export type ToolContentProps = ComponentProps<typeof CollapsibleContent>
-export const ToolInput = memo(({ className, input, ...props }: ToolInputProps) => {
+export const ToolContent = memo(
+ ({ className, children, ...props }: ToolContentProps) => (
+ <CollapsibleContent
+ className={cn(
+ 'mt-4 text-sm relative',
+ 'data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in',
+ className
+ )}
+ {...props}
+ >
+ <div className="ml-2 pl-4 border-l-2 border-dashed border-main-view-fg/10">
+ {children}
+ </div>
+ </CollapsibleContent>
+ )
+)
- return (
- <div className={cn("space-y-2", className)} {...props}>
- <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide">
- Parameters
- </h4>
- <div className="rounded-md overflow-hidden">
- <CodeBlock code={input} language="json" />
+export type ToolInputProps = ComponentProps<'div'> & {
+ input: ToolUIPart['input']
+}
+
+export const ToolInput = memo(
+ ({ className, input, ...props }: ToolInputProps) => {
+ return (
+ <div className={cn('space-y-2', className)} {...props}>
+ <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide">
+ Parameters
+ </h4>
+ <div className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 ">
+ <CodeBlock code={input} language="json" />
+ </div>
</div>
- </div>
- );
-});
+ )
+ }
+)
type ToolImageProps = {
- data: string;
- index: number;
- resolver: (input: string) => Promise<string>;
-};
+ data: string
+ index: number
+ resolver: (input: string) => Promise<string>
+}
const ToolImage = memo(({ data, index }: ToolImageProps) => {
// Prepare the URL - convert base64 to data URL if needed
- const [preparedUrl, setPreparedUrl] = useState<string | undefined>(undefined);
+ const [preparedUrl, setPreparedUrl] = useState<string | undefined>(undefined)
useEffect(() => {
- if (data.startsWith("data:image") || data.startsWith("http")) {
+ if (data.startsWith('data:image') || data.startsWith('http')) {
// Already a data URL or HTTP URL
- setPreparedUrl(data);
+ setPreparedUrl(data)
} else {
// Assume it's base64 encoded
- setPreparedUrl(`data:image/png;base64,${data}`);
+ setPreparedUrl(`data:image/png;base64,${data}`)
}
- }, [data]);
+ }, [data])
const isLoading = !preparedUrl
@@ -184,11 +192,11 @@ const ToolImage = memo(({ data, index }: ToolImageProps) => {
<div className="size-4 animate-spin rounded-full border-2 border-primary border-t-transparent" />
</div>
</div>
- );
+ )
}
if (!preparedUrl) {
- return null;
+ return null
}
return (
@@ -199,140 +207,163 @@ const ToolImage = memo(({ data, index }: ToolImageProps) => {
className="max-w-full max-h-96 w-auto h-auto object-contain rounded-md border border-main-view-fg/10"
/>
</div>
- );
-});
-
-export type ToolOutputProps = ComponentProps<"div"> & {
- output: ToolUIPart["output"];
- errorText: ToolUIPart["errorText"];
- resolver: (input: string) => Promise<string>;
-};
-
-export const ToolOutput = memo(({
- className,
- output,
- errorText,
- resolver,
- ...props
-}: ToolOutputProps) => {
- const Output = useMemo(() => {
- if (!(output || errorText)) {
- return null;
- }
-
- // Handle string output
- if (typeof output === "string") {
- return <CodeBlock code={output} language="json" />;
- }
-
- if (typeof output === "object" && !isValidElement(output)) {
- // Check if output has content array (new structure: {content: [{text, type}, {data, type: image}]})
- if (output && typeof output === "object" && "content" in output && Array.isArray(output.content)) {
- const content = output.content as Array<{
- type: string;
- text?: string;
- data?: string;
- mimeType?: string;
- }>;
-
- const textItems = content.filter((item) => item.type === "text");
- const imageItems = content.filter((item) => item.type === "image");
+ )
+})
+
+export type ToolOutputProps = ComponentProps<'div'> & {
+ output: ToolUIPart['output']
+ errorText: ToolUIPart['errorText']
+ resolver: (input: string) => Promise<string>
+}
+
+export const ToolOutput = memo(
+ ({ className, output, errorText, resolver, ...props }: ToolOutputProps) => {
+ const Output = useMemo(() => {
+ if (!(output || errorText)) {
+ return null
+ }
+ // Handle string output
+ if (typeof output === 'string') {
return (
- <div className="space-y-4">
- {textItems.length > 0 && (
- <div className="space-y-2">
- {textItems.map((item, index) => (
- <div key={index} className="rounded-md overflow-hidden">
- <CodeBlock code={item.text || ""} language="json" />
- </div>
- ))}
- </div>
- )}
- {imageItems.length > 0 && (
- <div className="space-y-2">
- {imageItems.map((item, index) => (
- <ToolImage
- key={index}
- data={item.data || ""}
- index={index}
- resolver={resolver}
- />
- ))}
- </div>
- )}
+ <div className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 ">
+ <CodeBlock code={output} language="json" />
</div>
- );
+ )
}
- // Handle old array format for backward compatibility
- if (Array.isArray(output)) {
- const hasImages = output.some(
- (item) => item?.type === "image" && (item?.data || item?.image),
- );
-
- if (hasImages) {
- // Filter out images from JSON and render images separately
- const nonImageOutput = output.filter((item) => item?.type !== "image");
+ if (typeof output === 'object' && !isValidElement(output)) {
+ // Check if output has content array (new structure: {content: [{text, type}, {data, type: image}]})
+ if (
+ output &&
+ typeof output === 'object' &&
+ 'content' in output &&
+ Array.isArray(output.content)
+ ) {
+ const content = output.content as Array<{
+ type: string
+ text?: string
+ data?: string
+ mimeType?: string
+ }>
+
+ const textItems = content.filter((item) => item.type === 'text')
+ const imageItems = content.filter((item) => item.type === 'image')
return (
<div className="space-y-4">
- {nonImageOutput.length > 0 && (
- <CodeBlock
- code={JSON.stringify(nonImageOutput, null, 2)}
- language="json"
- />
+ {textItems.length > 0 && (
+ <div className="space-y-2">
+ {textItems.map((item, index) => (
+ <div
+ key={index}
+ className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 "
+ >
+ <CodeBlock code={item.text || ''} language="markdown" />
+ </div>
+ ))}
+ </div>
+ )}
+ {imageItems.length > 0 && (
+ <div className="space-y-2">
+ {imageItems.map((item, index) => (
+ <ToolImage
+ key={index}
+ data={item.data || ''}
+ index={index}
+ resolver={resolver}
+ />
+ ))}
+ </div>
)}
- {output
- .filter(
- (item) =>
- item?.type === "image" && (item?.data || item?.image?.url),
- )
- .map((item, index) => (
- <ToolImage
- key={index}
- data={item.data ?? item.image?.url}
- index={index}
- resolver={resolver}
- />
- ))}
</div>
- );
+ )
+ }
+
+ // Handle old array format for backward compatibility
+ if (Array.isArray(output)) {
+ const hasImages = output.some(
+ (item) => item?.type === 'image' && (item?.data || item?.image)
+ )
+
+ if (hasImages) {
+ // Filter out images from JSON and render images separately
+ const nonImageOutput = output.filter(
+ (item) => item?.type !== 'image'
+ )
+
+ return (
+ <div className="space-y-4">
+ {nonImageOutput.length > 0 && (
+ <div className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 ">
+ <CodeBlock
+ code={JSON.stringify(nonImageOutput, null, 2)}
+ language="json"
+ />
+ </div>
+ )}
+ {output
+ .filter(
+ (item) =>
+ item?.type === 'image' && (item?.data || item?.image?.url)
+ )
+ .map((item, index) => (
+ <ToolImage
+ key={index}
+ data={item.data ?? item.image?.url}
+ index={index}
+ resolver={resolver}
+ />
+ ))}
+ </div>
+ )
+ }
+
+ return (
+ <div className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 ">
+ <CodeBlock
+ code={JSON.stringify(output, null, 2)}
+ language="json"
+ />
+ </div>
+ )
}
- return <CodeBlock code={JSON.stringify(output, null, 2)} language="json" />;
+ // Handle regular object
+ return (
+ <div className="rounded-md max-h-40 overflow-auto rounded-md border border-main-view-fg/10 ">
+ <CodeBlock code={JSON.stringify(output, null, 2)} language="json" />
+ </div>
+ )
}
- // Handle regular object
- return <CodeBlock code={JSON.stringify(output, null, 2)} language="json" />;
- }
+ return <div>{output as ReactNode}</div>
+ }, [output, errorText, resolver])
- return <div>{output as ReactNode}</div>;
- }, [output, errorText, resolver]);
+ if (!(output || errorText)) {
+ return null
+ }
- if (!(output || errorText)) {
- return null;
+ return (
+ <div className={cn('space-y-2 mt-4', className)} {...props}>
+ <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide">
+ {errorText ? 'Error' : 'Result'}
+ </h4>
+ <div className="rounded-md overflow-hidden">
+ {errorText && (
+ <div className="m-2 p-2 bg-destructive/10 text-destructive rounded-md">
+ {errorText}
+ </div>
+ )}
+ {Output}
+ </div>
+ </div>
+ )
}
+)
- return (
- <div className={cn("space-y-2 mt-4", className)} {...props}>
- <h4 className="font-medium text-muted-foreground text-xs uppercase tracking-wide">
- {errorText ? "Error" : "Result"}
- </h4>
- <div className="rounded-md overflow-hidden">
- {errorText && (
- <div className="m-2 p-2 bg-destructive/10 text-destructive rounded-md">
- {errorText}
- </div>
- )}
- {Output}
- </div>
- </div>
- );
-});
-
-Tool.displayName = 'Tool';
-ToolHeader.displayName = 'ToolHeader';
-ToolContent.displayName = 'ToolContent';
-ToolInput.displayName = 'ToolInput';
-ToolOutput.displayName = 'ToolOutput';
+Tool.displayName = 'Tool'
+ToolHeader.displayName = 'ToolHeader'
+ToolContent.displayName = 'ToolContent'
+ToolInput.displayName = 'ToolInput'
+ToolOutput.displayName = 'ToolOutput'
diff --git a/web-app/src/containers/ThreadContent.tsx b/web-app/src/containers/ThreadContent.tsx
index 32f165217..3d94e7407 100644
--- a/web-app/src/containers/ThreadContent.tsx
+++ b/web-app/src/containers/ThreadContent.tsx
@@ -20,7 +20,6 @@ import {
import { useAppState } from '@/hooks/useAppState'
import { cn } from '@/lib/utils'
import { useMessages } from '@/hooks/useMessages'
-import ToolCallBlock from '@/containers/ToolCallBlock'
import { useChat } from '@/hooks/useChat'
import {
EditMessageDialog,
@@ -473,7 +472,7 @@ export const ThreadContent = memo(
{reasoningSegment && (
<Reasoning
className="w-full text-muted-foreground"
- isStreaming={!!item.streamingThread}
+ isStreaming={!!item.streamingThread && !textSegment}
defaultOpen={!!item.streamingThread && item.isLastMessage}
>
<ReasoningTrigger />
@@ -490,7 +489,7 @@ export const ThreadContent = memo(
: 'h-auto opacity-100'
)}
>
- <ReasoningContent isStreaming={!!item.streamingThread}>
+ <ReasoningContent isStreaming={!!item.streamingThread && !textSegment}>
{reasoningSegment}
</ReasoningContent>
</div>
@@ -514,7 +513,6 @@ export const ThreadContent = memo(
? 'input-available'
: 'output-available'
}
- // className={cn(hasContentBefore && isFirstTool && 'mt-4')}
>
<ToolHeader
title={
diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx
index c0bcd6e30..cc0d45c07 100644
--- a/web-app/src/routes/threads/$threadId.tsx
+++ b/web-app/src/routes/threads/$threadId.tsx
@@ -1,5 +1,10 @@
import { useEffect, useMemo, useRef } from 'react'
-import { createFileRoute, useParams, redirect, useNavigate } from '@tanstack/react-router'
+import {
+ createFileRoute,
+ useParams,
+ redirect,
+ useNavigate,
+} from '@tanstack/react-router'
import cloneDeep from 'lodash.clonedeep'
import { cn } from '@/lib/utils'
import { toast } from 'sonner'
@@ -27,7 +32,11 @@ import { PromptProgress } from '@/components/PromptProgress'
import { ThreadPadding } from '@/containers/ThreadPadding'
import { TEMPORARY_CHAT_ID, TEMPORARY_CHAT_QUERY_ID } from '@/constants/chat'
import { IconInfoCircle } from '@tabler/icons-react'
-import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from '@/components/ui/tooltip'
const CONVERSATION_NOT_FOUND_EVENT = 'conversation-not-found'
@@ -101,7 +110,6 @@ function ThreadDetail() {
const thread = useThreads(useShallow((state) => state.threads[threadId]))
const scrollContainerRef = useRef<HTMLDivElement>(null)
-
// Listen for conversation not found events
useEffect(() => {
const handleConversationNotFound = (event: CustomEvent) => {
@@ -113,15 +121,21 @@ function ThreadDetail() {
}
toast.error(t('common:conversationNotAvailable'), {
- description: t('common:conversationNotAvailableDescription')
+ description: t('common:conversationNotAvailableDescription'),
})
navigate({ to: '/', replace: true })
}
}
- window.addEventListener(CONVERSATION_NOT_FOUND_EVENT, handleConversationNotFound as EventListener)
+ window.addEventListener(
+ CONVERSATION_NOT_FOUND_EVENT,
+ handleConversationNotFound as EventListener
+ )
return () => {
- window.removeEventListener(CONVERSATION_NOT_FOUND_EVENT, handleConversationNotFound as EventListener)
+ window.removeEventListener(
+ CONVERSATION_NOT_FOUND_EVENT,
+ handleConversationNotFound as EventListener
+ )
}
}, [threadId, navigate, t])
@@ -140,12 +154,15 @@ function ThreadDetail() {
.fetchMessages(threadId)
.then((fetchedMessages) => {
if (fetchedMessages) {
- const currentLocalMessages = useMessages.getState().getMessages(threadId)
+ const currentLocalMessages = useMessages
+ .getState()
+ .getMessages(threadId)
- if (PlatformFeatures[PlatformFeature.FIRST_MESSAGE_PERSISTED_THREAD] &&
- fetchedMessages.length === 0 &&
- currentLocalMessages &&
- currentLocalMessages.length > 0
+ if (
+ PlatformFeatures[PlatformFeature.FIRST_MESSAGE_PERSISTED_THREAD] &&
+ fetchedMessages.length === 0 &&
+ currentLocalMessages &&
+ currentLocalMessages.length > 0
) {
return
}
@@ -158,9 +175,10 @@ function ThreadDetail() {
)
if (localOnlyMessages.length > 0) {
- const mergedMessages = [...fetchedMessages, ...localOnlyMessages].sort(
- (a, b) => (a.created_at || 0) - (b.created_at || 0)
- )
+ const mergedMessages = [
+ ...fetchedMessages,
+ ...localOnlyMessages,
+ ].sort((a, b) => (a.created_at || 0) - (b.created_at || 0))
setMessages(threadId, mergedMessages)
return
}
@@ -290,7 +308,10 @@ function ThreadDetail() {
data-test-id="thread-content-text"
/>
{/* Persistent padding element for ChatGPT-style message positioning */}
- <ThreadPadding threadId={threadId} scrollContainerRef={scrollContainerRef} />
+ <ThreadPadding
+ threadId={threadId}
+ scrollContainerRef={scrollContainerRef}
+ />
</div>
</div>
<div
@@ -308,6 +329,7 @@ function ThreadDetail() {
threadId={threadId}
scrollContainerRef={scrollContainerRef}
/>
+ {/* <ConversationScrollButton /> */}
<ChatInput model={threadModel} />
</div>
</div>
diff --git a/web-app/src/styles/markdown.css b/web-app/src/styles/markdown.css
index e8e7e9fd9..f6fc59b82 100644
--- a/web-app/src/styles/markdown.css
+++ b/web-app/src/styles/markdown.css
@@ -188,7 +188,7 @@
}
/* Tables */
- table {
+ /* table {
border-collapse: collapse;
margin-bottom: 1em;
border-spacing: 0;
@@ -212,7 +212,7 @@
tr:nth-child(even) {
@apply bg-main-view-fg/5;
- }
+ } */
/* Links */
a {