From b45a6cd0339224b485fa74f16b2d48dd3a575396 Mon Sep 17 00:00:00 2001 From: "reza.g" Date: Tue, 8 Sep 2026 16:04:02 +0330 Subject: [PATCH] fix(inventory): keep Organization page actions within mobile bounds On /inventory/org two container rows could not shrink or wrap and overflowed past the left edge on phones (RTL), forcing horizontal scrolling: - the add-warehouse form was a non-wrapping flex row of fixed-width inputs (w-44 + w-52) plus the button (~500px total); it now stacks vertically below sm (full-width fields and button) and returns to the inline layout at sm+ - each warehouse row's action cluster (dashboard / move-project select / delete) is now flex-wrap with justify-end, and the name block is flex-1 so a long select option can no longer push the buttons out of the card on narrow viewports Desktop layout is unchanged; containerized rows stay within the page. --- frontend/src/pages/Inventory/OrganizationPage.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/Inventory/OrganizationPage.tsx b/frontend/src/pages/Inventory/OrganizationPage.tsx index 77bb8b9..8acbbb4 100644 --- a/frontend/src/pages/Inventory/OrganizationPage.tsx +++ b/frontend/src/pages/Inventory/OrganizationPage.tsx @@ -294,11 +294,11 @@ export function OrganizationPage() {
{whs.map((w) => (
-
+
{w.name} {w.description || ""}
-
+
)} -
+
setNewWh((s) => ({ ...s, [p.id]: e.target.value }))} /> setNewWhDesc((s) => ({ ...s, [p.id]: e.target.value }))} /> -