native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #99 from supabitapp/branch-name-edit-hover-indicator

Show branch rename affordance on hover

authored by

khoi and committed by
GitHub
a6e540df a291a80c

+9
+9
supacode/Features/Repositories/Views/WorktreeDetailTitleView.swift
··· 5 5 let onSubmit: (String) -> Void 6 6 7 7 @State private var isPresented = false 8 + @State private var isHovered = false 8 9 @State private var draftName = "" 9 10 10 11 var body: some View { ··· 17 18 .foregroundStyle(.secondary) 18 19 .accessibilityHidden(true) 19 20 Text(branchName) 21 + if isHovered { 22 + Image(systemName: "pencil") 23 + .foregroundStyle(.secondary) 24 + .accessibilityHidden(true) 25 + } 20 26 } 21 27 .font(.headline) 22 28 } 23 29 .help("Rename branch") 30 + .onHover { hovering in 31 + isHovered = hovering 32 + } 24 33 .popover(isPresented: $isPresented) { 25 34 RenameBranchPopover( 26 35 draftName: $draftName,