Visual tweaks

This commit is contained in:
Saoud Rizwan
2024-12-07 20:14:03 -08:00
parent 1492604ee6
commit ede6a40405
4 changed files with 15 additions and 8 deletions

View File

@@ -665,7 +665,12 @@ export const ChatRowContent = ({
}}>
Response
</div>
<CodeBlock source={`${"```"}json\n${message.text}\n${"```"}`} />
<CodeAccordian
code={message.text}
language="json"
isExpanded={true}
onToggleExpand={onToggleExpand}
/>
</div>
</>
)
@@ -825,8 +830,11 @@ export const ChatRowContent = ({
}}>
Arguments
</div>
<CodeBlock
source={`${"```"}json\n${useMcpServer.arguments}\n${"```"}`}
<CodeAccordian
code={useMcpServer.arguments}
language="json"
isExpanded={true}
onToggleExpand={onToggleExpand}
/>
</div>
)}

View File

@@ -12,7 +12,7 @@ const McpResourceRow = ({ item }: McpResourceRowProps) => {
<div
key={uri}
style={{
padding: "8px 0",
padding: "3px 0 8px 0",
}}>
<div
style={{

View File

@@ -1,5 +1,4 @@
import { McpTool } from "../../../../src/shared/mcp"
import { CODE_BLOCK_BG_COLOR } from "../common/CodeBlock"
type McpToolRowProps = {
tool: McpTool
@@ -10,7 +9,7 @@ const McpToolRow = ({ tool }: McpToolRowProps) => {
<div
key={tool.name}
style={{
padding: "8px 0",
padding: "3px 0 8px 0",
}}>
<div style={{ display: "flex" }}>
<span className="codicon codicon-symbol-method" style={{ marginRight: "6px" }}></span>
@@ -32,7 +31,7 @@ const McpToolRow = ({ tool }: McpToolRowProps) => {
style={{
marginTop: "8px",
fontSize: "12px",
background: CODE_BLOCK_BG_COLOR,
border: "1px solid color-mix(in srgb, var(--vscode-descriptionForeground) 30%, transparent)",
borderRadius: "3px",
padding: "8px",
}}>

View File

@@ -217,7 +217,7 @@ const ServerRow = ({ server }: { server: McpServer }) => {
<VSCodePanelView id="tools-view">
{server.tools && server.tools.length > 0 ? (
<div
style={{ display: "flex", flexDirection: "column", gap: "3px", width: "100%" }}>
style={{ display: "flex", flexDirection: "column", gap: "6px", width: "100%" }}>
{server.tools.map((tool) => (
<McpToolRow key={tool.name} tool={tool} />
))}