Skip to content

Commit bbf5b7e

Browse files
committed
sizing
1 parent 2a1f6e2 commit bbf5b7e

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/components/Chat/ChatConfigComponents/exampleAgents.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ const defaultAgentPromptTemplate: PromptTemplate = [
88
Here are some guidelines you must follow:
99
- Always respond in the same language as the user's query and context.
1010
- You may be given context from the user's knowledge base that is relevant to the user's query. If so, please use it.
11-
- You may be given a list of tools that you can use to help you search the user's knowledge base or perform actions on the user's knowledge base.
12-
- If provided to you, the search tool is particularly useful, although you should *not* use it initially if context has already been provided.
1311
- The date and time of the query is {TODAY}.`,
1412
},
1513
{
1614
role: 'user',
17-
content: `The user's query is: {QUERY}`,
15+
content: `{QUERY}`,
1816
},
1917
]
2018

src/components/Chat/MessageComponents/ChatSources.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const ChatSources: React.FC<ChatSourcesProps> = ({ contextItems }) => {
6464
</CardDescription>
6565
</Card>
6666
</HoverCardTrigger>
67-
<HoverCardContent className="max-h-[60vh] w-80 overflow-y-auto">
68-
<div className="p-2">
67+
<HoverCardContent className="z-[100] max-h-[60vh] w-80 overflow-y-auto" sideOffset={5}>
68+
<div className="">
6969
<MarkdownRenderer content={getItemContent(contextItem)} />
7070
</div>
7171
</HoverCardContent>

src/components/Common/MarkdownRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface MarkdownRendererProps {
99
const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({ content }) => {
1010
return (
1111
<ReactMarkdown
12-
className="overflow-hidden whitespace-normal break-words leading-relaxed text-muted-foreground"
12+
className="overflow-hidden whitespace-normal break-words text-sm leading-relaxed text-muted-foreground"
1313
rehypePlugins={[rehypeRaw]}
1414
>
1515
{content}

src/components/MainPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const MainPageContent: React.FC = () => {
5757
<div className="relative flex h-screen flex-col overflow-hidden">
5858
<TitleBar />
5959
<div className="flex min-h-0 flex-1">
60-
<div className="border-y-0 border-l-0 border-r-[0.001px] border-solid border-neutral-700 pt-2.5">
60+
<div className="border-y-0 border-l-0 border-r-[0.001px] border-solid border-neutral-700">
6161
<IconsSidebar getShortcutDescription={getShortcutDescription} />
6262
</div>
6363

0 commit comments

Comments
 (0)