Просмотр исходного кода

Restore rounded-rectangle shape for the Check Grammar button.

The pill-style Capsule clip was making the button sides fully oval; use AppTheme.buttonCornerRadius instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 1 месяц назад
Родитель
Сommit
f9147bdce2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gramora/Views/Components/GradientButton.swift

+ 1 - 1
gramora/Views/Components/GradientButton.swift

@@ -22,7 +22,7 @@ struct GradientButton: View {
             .padding(.vertical, 15)
             .padding(.vertical, 15)
             .frame(maxWidth: .infinity)
             .frame(maxWidth: .infinity)
             .background(AppTheme.primaryGradient)
             .background(AppTheme.primaryGradient)
-            .clipShape(Capsule())
+            .clipShape(RoundedRectangle(cornerRadius: AppTheme.buttonCornerRadius))
             .shadow(color: AppTheme.teal.opacity(0.30), radius: 10, y: 4)
             .shadow(color: AppTheme.teal.opacity(0.30), radius: 10, y: 4)
         }
         }
         .buttonStyle(.plain)
         .buttonStyle(.plain)