From 5c3e7a3cf3ed628f2d60452a45c041fc91b75100 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sun, 19 Apr 2026 13:15:00 -0400 Subject: [PATCH] =?UTF-8?q?fix(shopfloor):=20Manager=20Desk=20pickers=20?= =?UTF-8?q?=E2=80=94=20overflow=20+=20chevron=20+=20Take=20Over=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two issues from the wet-WO card screenshot: **1. Tank picker bleeding past the card's right edge** Native defaults to content-box, so + // `width: 100% + padding-right` overflows. border-box keeps the + // picker inside its flex slot — the Tank dropdown was bleeding + // past the card's right edge before this. + box-sizing: border-box; + flex: 1 1 220px; // grows to fill, but stays usable + min-width: 0; // lets flex actually shrink it min-height: 40px; - padding: 0 $fp-space-3; + // Custom chevron via SVG background — controls its position + // exactly (browsers crowd the native chevron right against the + // edge). pe: none on chevron so the click still hits the select. + appearance: none; + -webkit-appearance: none; + background-color: $fp-card; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: right 1rem center; + padding: 0 2.5rem 0 $fp-space-3; border: 1px solid #{$fp-border}; border-radius: $fp-radius-sm; - background-color: $fp-card; color: $fp-ink; font-size: $fp-text-sm; &:focus { @include fp-focus-ring; border-color: $fp-accent; } } + .o_fp_mgr_btn, .o_fp_mgr_wo_row .btn { min-height: 40px; padding: 0 $fp-space-3; @@ -517,14 +537,23 @@ color: $fp-ink; white-space: nowrap; transition: filter $fp-dur-fast $fp-ease; + flex: 0 0 auto; &:hover { filter: brightness(0.95); } } - @media (max-width: 720px) { - // Stack info + actions vertically on narrow viewports - .o_fp_mgr_wo_actions { width: 100%; } - .o_fp_mgr_picker { flex: 1 1 100%; max-width: 100%; } - .o_fp_mgr_wo_row .btn { min-height: $fp-touch-min; } + @media (max-width: 900px) { + // Mobile / narrow tablet: dropdown takes full width on its own + // line; the two buttons split 50/50 underneath. + .o_fp_mgr_wo_actions { + flex: 1 1 100%; + justify-content: stretch; + } + .o_fp_mgr_picker { flex: 1 1 100%; } + .o_fp_mgr_btn, + .o_fp_mgr_wo_row .btn { + flex: 1 1 calc(50% - #{$fp-space-2}); + min-height: $fp-touch-min; + } } diff --git a/fusion_plating/fusion_plating_shopfloor/static/src/xml/manager_dashboard.xml b/fusion_plating/fusion_plating_shopfloor/static/src/xml/manager_dashboard.xml index e9f9207d..d7771f39 100644 --- a/fusion_plating/fusion_plating_shopfloor/static/src/xml/manager_dashboard.xml +++ b/fusion_plating/fusion_plating_shopfloor/static/src/xml/manager_dashboard.xml @@ -185,14 +185,14 @@ - -