Make the whole rig cell tappable, not just the label

Add .contentShape(Rectangle()) to the rig-row button label so the entire padded
cell selects the rig, instead of only the text glyphs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 14:27:26 -07:00
parent 4fef5aed7b
commit 401682d266
@@ -145,6 +145,8 @@ struct RigLibrarySidebarView: View {
RoundedRectangle(cornerRadius: RigLibrarySidebarView.rowCorner)
.fill(Color.orange.opacity(isSelected ? RigLibrarySidebarView.selectedOpacity : 0))
)
// Make the whole padded cell tappable, not just the text glyphs.
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.contextMenu {