@@ -734,31 +734,37 @@ struct DeleteWorktreeSheet: View {
734734 var onDelete : ( ) -> Void
735735
736736 var body : some View {
737- VStack ( alignment: . leading, spacing: 16 ) {
738- Text ( " Delete \( workspaceName) ? " )
739- . font ( . system( size: 20 , weight: . semibold) )
740-
741- VStack ( alignment: . leading, spacing: 8 ) {
742- Text ( " This will delete the worktree at: " )
743- . font ( . system( size: 14 ) )
744- Text ( GitWorktree . worktreePath ( repoName: repoName, worktreeName: worktreeName)
745- . replacingOccurrences ( of: FileManager . default. homeDirectoryForCurrentUser. path, with: " ~ " ) )
746- . font ( . system( size: 13 , design: . monospaced) )
747- . foregroundColor ( . secondary)
748- . lineLimit ( 1 )
749- . truncationMode ( . middle)
750- }
737+ VStack ( alignment: . leading, spacing: 0 ) {
738+ Text ( " Deleting \( workspaceName) ? " )
739+ . font ( . system( size: 22 , weight: . semibold) )
740+ . frame ( maxWidth: . infinity, alignment: . leading)
741+ . padding ( . horizontal, 24 )
742+ . padding ( . vertical, 16 )
743+ . background ( Color ( white: 0.95 ) )
744+
745+ VStack ( alignment: . leading, spacing: 16 ) {
746+ VStack ( alignment: . leading, spacing: 8 ) {
747+ Text ( " This will delete the worktree at: " )
748+ . font ( . system( size: 14 ) )
749+ Text ( GitWorktree . worktreePath ( repoName: repoName, worktreeName: worktreeName)
750+ . replacingOccurrences ( of: FileManager . default. homeDirectoryForCurrentUser. path, with: " ~ " ) )
751+ . font ( . system( size: 13 , design: . monospaced) )
752+ . foregroundColor ( . secondary)
753+ . lineLimit ( 1 )
754+ . truncationMode ( . middle)
755+ }
751756
752- HStack {
753- Spacer ( )
754- Button ( " Cancel " , action: onCancel)
755- . keyboardShortcut ( . cancelAction)
756- Button ( " Delete " , role: . destructive, action: onDelete)
757- . keyboardShortcut ( . return)
758- . buttonStyle ( . borderedProminent)
757+ HStack {
758+ Spacer ( )
759+ Button ( " Cancel " , action: onCancel)
760+ . keyboardShortcut ( . cancelAction)
761+ Button ( " Delete " , role: . destructive, action: onDelete)
762+ . keyboardShortcut ( . return)
763+ . buttonStyle ( . borderedProminent)
764+ }
759765 }
766+ . padding ( 24 )
760767 }
761- . padding ( 24 )
762768 . frame ( width: 600 )
763769 }
764770}
0 commit comments