diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-09-20 15:17:12 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-09-20 16:57:50 +0200 |
| commit | 93bf26abc1cb8bab70bfbdb77c3118dc18e57836 (patch) | |
| tree | b7d6e8b01a407b597c76686d53109f0bd8b0f7b9 /addons/web/static/src/less | |
| parent | 9d2e8253401885dae857c1848a7717f93cfbe237 (diff) | |
[FIX] web, *: review kanban record sizes
* account, maintenance, mrp, payment, point_of_sale, sales_team
Previous system was:
- `flex: 1 1 300px;` on kanban records
- If a specific record needs a different size, add custom style to
either change the `flex` rule or set a `min-width` for >=SM screens
Now:
- `flex: 1 1 auto;` and `width: 300px;` on kanban records
- If a specific record needs a different size, add custom style to
change the `width` rule.
This allows some standardization of the way to customize the suited
width and also allow lesser LESS code (as the previous version required
either the use of the flex mixin or the use of a media query).
Note:
- Also remove useless app record rule
- Also fix MRP Work Centers record width
Note2:
This system should be improved for version 12.0.
Diffstat (limited to 'addons/web/static/src/less')
| -rw-r--r-- | addons/web/static/src/less/kanban_view.less | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/web/static/src/less/kanban_view.less b/addons/web/static/src/less/kanban_view.less index ee510f75e29..4caff67d181 100644 --- a/addons/web/static/src/less/kanban_view.less +++ b/addons/web/static/src/less/kanban_view.less @@ -263,11 +263,6 @@ // Provide a basic style for different kanban record layouts // --------------------------------------------------------- .oe_kanban_card, .o_kanban_record { - // Apps List records sizing - &.oe_module_vignette { - .o-flex(1, 1, 350px); - } - // ------- v11 Layout + generic layouts (~v10) ------- // Kanban Record - Dropdown .o_dropdown_kanban { @@ -603,7 +598,8 @@ padding: @o-kanban-record-margin (@odoo-horizontal-padding - @o-kanban-record-margin); .o_kanban_record { - .o-flex(1, 1, @o-kanban-default-record-width); + .o-flex(1, 1, auto); + width: @o-kanban-default-record-width; margin: (@o-kanban-record-margin * 0.5) @o-kanban-record-margin; @media (max-width: @screen-xs-max) { |
