fix(fusion_clock): SCSS compile error — replace CSS min() with width+max-width
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user