From 09cea73e500b49e20352216655a17b7d4041f4d1 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sat, 30 May 2026 17:48:29 -0400 Subject: [PATCH] =?UTF-8?q?fix(fusion=5Fclock):=20SCSS=20compile=20error?= =?UTF-8?q?=20=E2=80=94=20replace=20CSS=20min()=20with=20width+max-width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Odoo's Sass compiler evaluates the built-in min() function and errors with "Incompatible units: 'px' and 'vw'" on `width: min(86vw, 380px)`, which broke the entire web.assets_frontend bundle (kiosk + all portal pages unstyled). Equivalent, compiler-safe: `width: 86vw; max-width: 380px;`. Verified: forced a fresh frontend bundle compile on entech — no Incompatible -units error, served CSS contains the compiled --pin rule. Live as 19.0.3.11.2. Co-Authored-By: Claude Opus 4.8 --- fusion_clock/__manifest__.py | 2 +- fusion_clock/static/src/scss/nfc_kiosk.scss | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fusion_clock/__manifest__.py b/fusion_clock/__manifest__.py index 69f068dc..c427e79e 100644 --- a/fusion_clock/__manifest__.py +++ b/fusion_clock/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Clock', - 'version': '19.0.3.11.1', + 'version': '19.0.3.11.2', 'category': 'Human Resources/Attendances', 'summary': 'Complete Employee T&A with Geofencing, Shifts, Penalties, Overtime, Kiosk, Dashboard & Payroll Export', 'description': """ diff --git a/fusion_clock/static/src/scss/nfc_kiosk.scss b/fusion_clock/static/src/scss/nfc_kiosk.scss index 64b1277a..8e1fe2fd 100644 --- a/fusion_clock/static/src/scss/nfc_kiosk.scss +++ b/fusion_clock/static/src/scss/nfc_kiosk.scss @@ -514,7 +514,9 @@ html:has(#nfc_kiosk_root) { // Compact PIN-pad variant — narrower than the wide list panels, but a // definite width so the centred flex overlay doesn't collapse it. - &--pin { width: min(86vw, 380px); max-width: none; padding: 1.75rem 1.75rem 1.5rem; } + // (Don't use CSS min() here — Odoo's Sass compiler evaluates the built-in + // min() and errors on mixed vw/px units; width+max-width is equivalent.) + &--pin { width: 86vw; max-width: 380px; padding: 1.75rem 1.75rem 1.5rem; } h2 { font-size: 1.5rem;