@@ -18,18 +18,14 @@ import {
1818 gitWorktreeRepair ,
1919 gitWorktreePrune ,
2020 gitStatus ,
21- gitBranches ,
2221 type GitWorktree ,
23- type GitBranch ,
2422} from "../../utils/tauri-api" ;
25- import { getProjectPath } from "../../utils/workspace" ;
2623import {
2724 Button ,
2825 IconButton ,
2926 Input ,
3027 Badge ,
3128 Text ,
32- ListItem ,
3329 Modal ,
3430} from "@/components/ui" ;
3531import { tokens } from "@/design-system/tokens" ;
@@ -244,7 +240,8 @@ export function WorktreeManager(props: WorktreeManagerProps) {
244240 return parts [ parts . length - 1 ] ;
245241 } ;
246242
247- const getParentPath = ( path : string ) : string => {
243+ // Helper for potential future use (e.g., path navigation)
244+ const _getParentPath = ( path : string ) : string => {
248245 const parts = path . split ( / [ / \\ ] / ) ;
249246 if ( parts . length <= 1 ) return "" ;
250247 return parts . slice ( 0 , - 1 ) . join ( "/" ) ;
@@ -498,7 +495,9 @@ export function WorktreeManager(props: WorktreeManagerProps) {
498495 </ Show >
499496
500497 < Show when = { worktree . isLocked } >
501- < Icon name = "lock" size = { 12 } style = { { color : tokens . colors . semantic . warning } } title = "Locked" />
498+ < span title = "Locked" >
499+ < Icon name = "lock" size = { 12 } style = { { color : tokens . colors . semantic . warning } } />
500+ </ span >
502501 </ Show >
503502
504503 < Show when = { isDirty ( ) } >
@@ -529,25 +528,26 @@ export function WorktreeManager(props: WorktreeManagerProps) {
529528 detached HEAD
530529 </ Text >
531530 </ Show >
532- < Text style = { { "font-size" : "10px" , "font-family" : tokens . typography . fontFamily . code , color : tokens . colors . text . muted } } >
531+ < Text style = { { "font-size" : "10px" , "font-family" : tokens . typography . fontFamily . mono , color : tokens . colors . text . muted } } >
533532 { worktree . commit . substring ( 0 , 7 ) }
534533 </ Text >
535534 </ div >
536535
537536 { /* Path */ }
538- < Text
539- style = { {
540- "font-size" : "10px" ,
541- color : tokens . colors . text . muted ,
542- overflow : "hidden" ,
543- "text-overflow" : "ellipsis" ,
544- "white-space" : "nowrap" ,
545- "margin-top" : "2px" ,
546- } }
547- title = { worktree . path }
548- >
549- { worktree . path }
550- </ Text >
537+ < span title = { worktree . path } >
538+ < Text
539+ style = { {
540+ "font-size" : "10px" ,
541+ color : tokens . colors . text . muted ,
542+ overflow : "hidden" ,
543+ "text-overflow" : "ellipsis" ,
544+ "white-space" : "nowrap" ,
545+ "margin-top" : "2px" ,
546+ } }
547+ >
548+ { worktree . path }
549+ </ Text >
550+ </ span >
551551 </ div >
552552
553553 { /* Quick actions */ }
@@ -625,7 +625,7 @@ export function WorktreeManager(props: WorktreeManagerProps) {
625625 < Text style = { { "font-size" : "10px" , "font-weight" : "600" , "text-transform" : "uppercase" , "letter-spacing" : "0.5px" , color : tokens . colors . text . muted , "margin-bottom" : tokens . spacing . xs } } >
626626 Path
627627 </ Text >
628- < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . code , color : tokens . colors . text . primary , "word-break" : "break-all" } } >
628+ < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . mono , color : tokens . colors . text . primary , "word-break" : "break-all" } } >
629629 { worktree . path }
630630 </ Text >
631631 </ div >
@@ -645,7 +645,7 @@ export function WorktreeManager(props: WorktreeManagerProps) {
645645 < Text style = { { "font-size" : "10px" , "font-weight" : "600" , "text-transform" : "uppercase" , "letter-spacing" : "0.5px" , color : tokens . colors . text . muted , "margin-bottom" : tokens . spacing . xs } } >
646646 HEAD Commit
647647 </ Text >
648- < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . code , color : tokens . colors . text . primary } } >
648+ < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . mono , color : tokens . colors . text . primary } } >
649649 { worktree . commit }
650650 </ Text >
651651 </ div >
@@ -794,7 +794,7 @@ export function WorktreeManager(props: WorktreeManagerProps) {
794794 < Text style = { { "font-size" : "12px" , "font-weight" : "500" , color : tokens . colors . text . primary } } >
795795 { getWorktreeName ( confirmRemove ( ) ! . path ) }
796796 </ Text >
797- < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . code , color : tokens . colors . text . muted , "margin-top" : tokens . spacing . xs } } >
797+ < Text style = { { "font-size" : "11px" , "font-family" : tokens . typography . fontFamily . mono , color : tokens . colors . text . muted , "margin-top" : tokens . spacing . xs } } >
798798 { confirmRemove ( ) ! . path }
799799 </ Text >
800800 </ div >
@@ -857,7 +857,7 @@ export function WorktreeManager(props: WorktreeManagerProps) {
857857 < Text style = { { "font-size" : "12px" , "font-weight" : "500" , color : tokens . colors . text . muted , "margin-bottom" : tokens . spacing . sm } } >
858858 Current Location
859859 </ Text >
860- < Text style = { { "font-size" : "12px" , "font-family" : tokens . typography . fontFamily . code , color : tokens . colors . text . primary } } >
860+ < Text style = { { "font-size" : "12px" , "font-family" : tokens . typography . fontFamily . mono , color : tokens . colors . text . primary } } >
861861 { showMoveDialog ( ) ! . path }
862862 </ Text >
863863 </ div >
0 commit comments