mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: properly handle mode name overflow (#3328)
This commit is contained in:
parent
8ed974e9be
commit
9c249494d5
1 changed files with 24 additions and 2 deletions
|
|
@ -571,8 +571,30 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
|
|||
}}
|
||||
data-testid={`mode-option-${modeConfig.slug}`}>
|
||||
<div className="flex items-center justify-between w-full">
|
||||
<span>{modeConfig.name}</span>
|
||||
<span className="text-foreground">{modeConfig.slug}</span>
|
||||
<span
|
||||
style={{
|
||||
whiteSpace: "nowrap",
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
flex: 2,
|
||||
minWidth: 0,
|
||||
}}>
|
||||
{modeConfig.name}
|
||||
</span>
|
||||
<span
|
||||
className="text-foreground"
|
||||
style={{
|
||||
whiteSpace: "nowrap",
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
direction: "rtl",
|
||||
textAlign: "right",
|
||||
flex: 1,
|
||||
minWidth: 0,
|
||||
marginLeft: "0.5em",
|
||||
}}>
|
||||
{modeConfig.slug}
|
||||
</span>
|
||||
</div>
|
||||
</CommandItem>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue