From 033613ac4053b33b507a9f93f5b087bf6e29c5b1 Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Mon, 24 Aug 2026 15:24:52 -0300 Subject: [PATCH] [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. --- PediFoods/Views/Main/OrdersView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PediFoods/Views/Main/OrdersView.swift b/PediFoods/Views/Main/OrdersView.swift index 01c195b..bd35dae 100644 --- a/PediFoods/Views/Main/OrdersView.swift +++ b/PediFoods/Views/Main/OrdersView.swift @@ -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()