Explorar el Código

Center sidebar upgrade card text to match the premium layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 hace 1 mes
padre
commit
c6a9e647bf
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      Reddit App/Views/SidebarView.swift

+ 4 - 4
Reddit App/Views/SidebarView.swift

@@ -96,7 +96,7 @@ struct SidebarView: View {
     }
 
     private var upgradeCard: some View {
-        VStack(alignment: isPremium ? .center : .leading, spacing: 8) {
+        VStack(alignment: .center, spacing: 8) {
             VStack(spacing: 4) {
                 Image(systemName: "crown.fill")
                     .font(.system(size: 14))
@@ -105,7 +105,7 @@ struct SidebarView: View {
                     .font(.system(size: 12, weight: .semibold))
                     .foregroundStyle(AppTheme.textPrimary)
             }
-            .frame(maxWidth: .infinity, alignment: isPremium ? .center : .leading)
+            .frame(maxWidth: .infinity, alignment: .center)
 
             Text(
                 isPremium
@@ -114,8 +114,8 @@ struct SidebarView: View {
             )
                 .font(.system(size: 10))
                 .foregroundStyle(AppTheme.textSecondary)
-                .multilineTextAlignment(isPremium ? .center : .leading)
-                .frame(maxWidth: .infinity, alignment: isPremium ? .center : .leading)
+                .multilineTextAlignment(.center)
+                .frame(maxWidth: .infinity, alignment: .center)
                 .fixedSize(horizontal: false, vertical: true)
                 .lineSpacing(2)