[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:
@@ -44,6 +44,7 @@ struct OrdersView: View {
|
|||||||
Text("Nenhum pedido encontrado.")
|
Text("Nenhum pedido encontrado.")
|
||||||
.font(AppTypography.body)
|
.font(AppTypography.body)
|
||||||
.foregroundStyle(AppColors.textMuted)
|
.foregroundStyle(AppColors.textMuted)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
.padding(.top, 24)
|
.padding(.top, 24)
|
||||||
} else {
|
} else {
|
||||||
ForEach(orders) { order in
|
ForEach(orders) { order in
|
||||||
|
|||||||
Reference in New Issue
Block a user