[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.
This commit is contained in:
Daniel Arantes Loverde
2026-08-24 15:30:37 -03:00
parent 033613ac40
commit d969cca8b3

View File

@@ -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