mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Visual tweaks
This commit is contained in:
@@ -665,7 +665,12 @@ export const ChatRowContent = ({
|
|||||||
}}>
|
}}>
|
||||||
Response
|
Response
|
||||||
</div>
|
</div>
|
||||||
<CodeBlock source={`${"```"}json\n${message.text}\n${"```"}`} />
|
<CodeAccordian
|
||||||
|
code={message.text}
|
||||||
|
language="json"
|
||||||
|
isExpanded={true}
|
||||||
|
onToggleExpand={onToggleExpand}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
@@ -825,8 +830,11 @@ export const ChatRowContent = ({
|
|||||||
}}>
|
}}>
|
||||||
Arguments
|
Arguments
|
||||||
</div>
|
</div>
|
||||||
<CodeBlock
|
<CodeAccordian
|
||||||
source={`${"```"}json\n${useMcpServer.arguments}\n${"```"}`}
|
code={useMcpServer.arguments}
|
||||||
|
language="json"
|
||||||
|
isExpanded={true}
|
||||||
|
onToggleExpand={onToggleExpand}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const McpResourceRow = ({ item }: McpResourceRowProps) => {
|
|||||||
<div
|
<div
|
||||||
key={uri}
|
key={uri}
|
||||||
style={{
|
style={{
|
||||||
padding: "8px 0",
|
padding: "3px 0 8px 0",
|
||||||
}}>
|
}}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { McpTool } from "../../../../src/shared/mcp"
|
import { McpTool } from "../../../../src/shared/mcp"
|
||||||
import { CODE_BLOCK_BG_COLOR } from "../common/CodeBlock"
|
|
||||||
|
|
||||||
type McpToolRowProps = {
|
type McpToolRowProps = {
|
||||||
tool: McpTool
|
tool: McpTool
|
||||||
@@ -10,7 +9,7 @@ const McpToolRow = ({ tool }: McpToolRowProps) => {
|
|||||||
<div
|
<div
|
||||||
key={tool.name}
|
key={tool.name}
|
||||||
style={{
|
style={{
|
||||||
padding: "8px 0",
|
padding: "3px 0 8px 0",
|
||||||
}}>
|
}}>
|
||||||
<div style={{ display: "flex" }}>
|
<div style={{ display: "flex" }}>
|
||||||
<span className="codicon codicon-symbol-method" style={{ marginRight: "6px" }}></span>
|
<span className="codicon codicon-symbol-method" style={{ marginRight: "6px" }}></span>
|
||||||
@@ -32,7 +31,7 @@ const McpToolRow = ({ tool }: McpToolRowProps) => {
|
|||||||
style={{
|
style={{
|
||||||
marginTop: "8px",
|
marginTop: "8px",
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
background: CODE_BLOCK_BG_COLOR,
|
border: "1px solid color-mix(in srgb, var(--vscode-descriptionForeground) 30%, transparent)",
|
||||||
borderRadius: "3px",
|
borderRadius: "3px",
|
||||||
padding: "8px",
|
padding: "8px",
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ const ServerRow = ({ server }: { server: McpServer }) => {
|
|||||||
<VSCodePanelView id="tools-view">
|
<VSCodePanelView id="tools-view">
|
||||||
{server.tools && server.tools.length > 0 ? (
|
{server.tools && server.tools.length > 0 ? (
|
||||||
<div
|
<div
|
||||||
style={{ display: "flex", flexDirection: "column", gap: "3px", width: "100%" }}>
|
style={{ display: "flex", flexDirection: "column", gap: "6px", width: "100%" }}>
|
||||||
{server.tools.map((tool) => (
|
{server.tools.map((tool) => (
|
||||||
<McpToolRow key={tool.name} tool={tool} />
|
<McpToolRow key={tool.name} tool={tool} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user