|
|
@@ -214,12 +214,11 @@ struct TitleScoreBadge: View {
|
|
|
struct TitleVariantRow: View {
|
|
|
let variant: TitleVariant
|
|
|
let isSelected: Bool
|
|
|
- let onSelect: () -> Void
|
|
|
let onApply: () -> Void
|
|
|
|
|
|
var body: some View {
|
|
|
HStack(alignment: .top, spacing: 12) {
|
|
|
- Button(action: onSelect) {
|
|
|
+ Button(action: onApply) {
|
|
|
Circle()
|
|
|
.stroke(isSelected ? AppTheme.accentBlue : AppTheme.cardBorder, lineWidth: 2)
|
|
|
.frame(width: 16, height: 16)
|
|
|
@@ -283,6 +282,8 @@ struct TitleVariantRow: View {
|
|
|
)
|
|
|
)
|
|
|
.hoverCard(cornerRadius: 8, isSelected: isSelected)
|
|
|
+ .hoverCursor()
|
|
|
+ .onTapGesture(perform: onApply)
|
|
|
}
|
|
|
}
|
|
|
|