mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
refactor: improve layout and styling in McpToolRow component
This commit is contained in:
parent
eb00079158
commit
e1acb7cd6c
1 changed files with 7 additions and 5 deletions
|
|
@ -44,13 +44,15 @@ const McpToolRow = ({ tool, serverName, serverSource, alwaysAllowMcp }: McpToolR
|
|||
}}>
|
||||
<div
|
||||
data-testid="tool-row-container"
|
||||
style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}
|
||||
className="flex items-center justify-between gap-4"
|
||||
onClick={(e) => e.stopPropagation()}>
|
||||
<div style={{ display: "flex", alignItems: "center" }}>
|
||||
<span className="codicon codicon-symbol-method" style={{ marginRight: "6px" }}></span>
|
||||
<span style={{ fontWeight: 500 }}>{tool.name}</span>
|
||||
<div className="flex items-center min-w-0 flex-1">
|
||||
<span className="codicon codicon-symbol-method mr-1.5 flex-shrink-0"></span>
|
||||
<span className="font-medium truncate" title={tool.name}>
|
||||
{tool.name}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center space-x-4">
|
||||
<div className="flex items-center space-x-4 flex-shrink-0">
|
||||
{" "}
|
||||
{/* Wrapper for checkboxes */}
|
||||
{serverName && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue