From d969cca8b34d1c9ae444df09e6c64e8ca27d903c Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Mon, 24 Aug 2026 15:30:37 -0300 Subject: [PATCH] [lcenavigationview-adoption] Center Orders empty-state text, not left Previous fix's VStack-level .frame(maxWidth: .infinity, alignment: .leading) fixed the width but over-applied .leading to the empty text too. Give it its own centered frame instead, matching the isLoading/errorMessage branches right above it. --- PediFoods/Views/Main/OrdersView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/PediFoods/Views/Main/OrdersView.swift b/PediFoods/Views/Main/OrdersView.swift index bd35dae..d2b9956 100644 --- a/PediFoods/Views/Main/OrdersView.swift +++ b/PediFoods/Views/Main/OrdersView.swift @@ -44,6 +44,7 @@ struct OrdersView: View { Text("Nenhum pedido encontrado.") .font(AppTypography.body) .foregroundStyle(AppColors.textMuted) + .frame(maxWidth: .infinity) .padding(.top, 24) } else { ForEach(orders) { order in