@@ -4,16 +4,8 @@ import type { Worktree } from "@roo-code/types"
44
55import { vscode } from "@/utils/vscode"
66import { useAppTranslation } from "@/i18n/TranslationContext"
7- import {
8- Dialog ,
9- DialogContent ,
10- DialogDescription ,
11- DialogFooter ,
12- DialogHeader ,
13- DialogTitle ,
14- Button ,
15- Checkbox ,
16- } from "@/components/ui"
7+ import { Dialog , DialogContent , DialogFooter , DialogHeader , DialogTitle , Button , Checkbox } from "@/components/ui"
8+ import { Folder , GitBranch , TriangleAlert } from "lucide-react"
179
1810interface DeleteWorktreeModalProps {
1911 open : boolean
@@ -63,33 +55,35 @@ export const DeleteWorktreeModal = ({ open, onClose, worktree, onSuccess }: Dele
6355 < Dialog open = { open } onOpenChange = { ( isOpen : boolean ) => ! isOpen && onClose ( ) } >
6456 < DialogContent >
6557 < DialogHeader >
66- < div className = "flex items-center gap-2" >
67- < span className = "codicon codicon-warning text-vscode-charts-yellow text-xl" />
68- < DialogTitle > { t ( "worktrees:deleteWorktree" ) } </ DialogTitle >
69- </ div >
70- < DialogDescription > { t ( "worktrees:deleteWorktreeDescription" ) } </ DialogDescription >
58+ < DialogTitle > { t ( "worktrees:deleteWorktree" ) } </ DialogTitle >
7159 </ DialogHeader >
7260
7361 < div className = "flex flex-col gap-3 overflow-hidden" >
7462 { /* Worktree info */ }
75- < div className = "px-2 py-1.5 rounded bg -vscode-input-background border border -vscode-input-border " >
76- < div className = "flex items-center gap-2" >
77- < span className = "codicon codicon-git-branch flex- shrink-0" />
78- < span className = "font-medium text-vscode-foreground truncate" >
63+ < div className = "flex flex-col p-3 gap-1 cursor-default rounded-xl text -vscode-foreground bg -vscode-input-background " >
64+ < p className = "flex items-center gap-2 m-0 " >
65+ < GitBranch className = "size-4 shrink-0" />
66+ < span className = "font-medium truncate" >
7967 { worktree . branch ||
8068 ( worktree . isDetached ? t ( "worktrees:detachedHead" ) : t ( "worktrees:noBranch" ) ) }
8169 </ span >
82- </ div >
83- < div className = "text-xs text-vscode-descriptionForeground mt-0.5 truncate" > { worktree . path } </ div >
70+ </ p >
71+
72+ < p className = "flex items-center gap-2 m-0" >
73+ < Folder className = "size-4 shrink-0" />
74+ < span className = "m-0 text-sm font-mono font-medium text-vscode-descriptionForeground truncate" >
75+ { worktree . path }
76+ </ span >
77+ </ p >
8478 </ div >
8579
8680 { /* Warning message */ }
87- < div className = "flex items-start gap-2 p-2 rounded bg-vscode-inputValidation-warningBackground border border-vscode-inputValidation-warningBorder text-sm " >
88- < span className = "codicon codicon-warning text-vscode-charts-yellow flex-shrink-0 mt-0.5 " />
81+ < div className = "flex items-start gap-2 p-3 rounded-xl bg-vscode-inputValidation-warningBackground border border-vscode-inputValidation-warningBorder" >
82+ < TriangleAlert className = "size-4 text-vscode-charts-yellow flex-shrink-0" />
8983 < div className = "min-w-0" >
9084 < p className = "text-vscode-foreground m-0" > { t ( "worktrees:deleteWarning" ) } </ p >
9185 < ul className = "mt-1 mb-0 pl-0 list-none space-y-0.5 text-vscode-descriptionForeground" >
92- < li > • { t ( "worktrees:deleteWarningBranch" , { branch : worktree . branch || "HEAD" } ) } </ li >
86+ < li > • { t ( "worktrees:deleteWarningBranch" ) } </ li >
9387 < li > • { t ( "worktrees:deleteWarningFiles" ) } </ li >
9488 </ ul >
9589 </ div >
0 commit comments