mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
style(cli): simplify ModeTool layout to horizontal with mode suffix
This commit is contained in:
parent
9ffe49a22b
commit
13e3d69a26
1 changed files with 11 additions and 13 deletions
|
|
@ -12,19 +12,17 @@ export function ModeTool({ toolData }: ToolRendererProps) {
|
|||
const isSwitch = toolData.tool.includes("switch") || toolData.tool.includes("Switch")
|
||||
|
||||
return (
|
||||
<Box flexDirection="column" paddingX={1}>
|
||||
{/* Header */}
|
||||
<Box>
|
||||
<Icon name={iconName} color={theme.toolHeader} />
|
||||
{isSwitch && mode && (
|
||||
<Box>
|
||||
<Text color={theme.dimText}>Switching to</Text>
|
||||
<Text color={theme.userHeader} bold>
|
||||
{mode}
|
||||
</Text>
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
<Box flexDirection="row" gap={1} paddingX={1} marginBottom={1}>
|
||||
<Icon name={iconName} color={theme.toolHeader} />
|
||||
{isSwitch && mode && (
|
||||
<Box gap={1}>
|
||||
<Text color={theme.dimText}>Switching to</Text>
|
||||
<Text color={theme.userHeader} bold>
|
||||
{mode}
|
||||
</Text>
|
||||
<Text color={theme.dimText}>mode</Text>
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue