[lcenavigationview-adoption] Fix Orders empty state shrinking to content width

The empty-orders branch ("Nenhum pedido encontrado.") had no
.frame(maxWidth: .infinity), unlike the loading/error branches -
ScrollView sizes to its content's intrinsic width, so the whole
container (and its background) shrank to the text's width, leaving
the real black window visible on both sides. Forces the VStack (and
ScrollView) to always fill width regardless of which branch renders.
This commit is contained in:
Daniel Arantes Loverde
2026-08-24 15:24:52 -03:00
parent 29c80d06af
commit 033613ac40

View File

@@ -51,10 +51,12 @@ struct OrdersView: View {
}
}
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 20)
.padding(.top, 18)
.padding(.bottom, UIDevice.bottomNotch + 18)
}
.frame(maxWidth: .infinity)
.background(AppColors.backgroundLight)
.navigationBarBackButtonHidden(true)
.appHiddenNavigationBar()