[FIX] web: typo in MEDIAS_BREAKPOINTS

In commit, odoo/odoo@3c10fcadee
a typo was introduced in the `minWidth` (`769` instead of `768`).
This typo was resulting in a strange behaviour in the webclient when the
width of the viewport was `768px`.

Step to reproduce:
* Open Odoo
* Go to a form view (e.g. Sales -> Select a record)
* Set the size of the viewport to 767
* Set the size of the viewport to 768 => BUG nothing happens
* Set the size of the viewport to 769 => BUG redraw but to late, CSS
  already change due to its media break point rules when it was at 768.

Ref:
https://getbootstrap.com/docs/5.1/layout/breakpoints/

closes odoo/odoo#103397

X-original-commit: 82d8348d3d5a05e065a07af1924de579cbec3a35
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
This commit is contained in:
Romeo Fragomeli
2022-10-18 14:15:13 +02:00
parent f489eb9226
commit 0e12bcb3da
+1 -1
View File
@@ -92,7 +92,7 @@ export const MEDIAS_BREAKPOINTS = [
{ maxWidth: 474 },
{ minWidth: 475, maxWidth: 575 },
{ minWidth: 576, maxWidth: 767 },
{ minWidth: 769, maxWidth: 991 },
{ minWidth: 768, maxWidth: 991 },
{ minWidth: 992, maxWidth: 1199 },
{ minWidth: 1200, maxWidth: 1533 },
{ minWidth: 1534 },