710d000f1872fd99b41d52ec3d6923756bba7cba
*: mass_mailing This commit introduces options for the flex column layout and the horizontal resizing to be used on mobile and be independent from the desktop layout. This makes it possible to: - Have different number of columns on mobile and on desktop. - Use different column widths and offsets for mobile and desktop. - Reorder columns independently. The behavior expected from the columns is: - In the editor panel, Cols indicate the number of columns per row on both mobile and desktop. The option is conditional of your environment: you edit the number for the screen size of your current resolution. - When columns have different sizes (either because it is the default behavior of the snippet, or because the user resized some), the counter should read "Custom". Same when the user changed some offsets. - If manual modifications were made on width and offset, they are reset on the current display if the number of elements is updated. This was decided because an old, specific layout with custom offsets / width doesn't work well with a different number of elements. (This is also the default behavior before this PR with desktop-only modifications.) The expected behavior when reordering is: - On mobile, it should only affect the mobile layout. - On desktop, it should affect both layouts. In order to have a coherent feature on both mobile and desktop as well as correct some non-ideal but non-blocking behaviors, the commit also changes the following behaviors: - When setting a columns count lower than the current number of items in the `.row` container, extra items are now wrapped on the next flex-rows (still within the container) instead of being deleted. - When going from e.g. 3 to 5 columns (and as many items), the change happens all at once instead of each item being visibly added one by one on the next row, then brought back to the first row. - The columns count automatically updates when resizing an item, instead of updating only after you click somewhere else on the snippet. This commit also adds a test to validate the new behavior. task-3097045 closes odoo/odoo#117562 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%