From 864f96214596e1e2d53b8d28fea2c6297e6bdf23 Mon Sep 17 00:00:00 2001 From: wan Date: Tue, 1 Sep 2020 13:42:22 +0000 Subject: [PATCH] [IMP] base: do not resize module icons Most of the modules have a square icon but some don't. For instance, the flags of l10n modules, or other third party modules. Flags have very specific proportions, and we don't want them to be resized when rendered. While we could hardcode a square icon for each problematic icon, it would be more manipulations, and the flags are already in the repo without the right proportions; we don't want to duplicate binaries. The many2many `module_ids` kanban field of the uninstall wizard has also been updated to look more like the generic kanban view for the modules. The classes in the kanban view of `fleet_vehicle_model_view_form` seem to have been copy-pasted and are useless. It has been removed to reduce future possible side effects of changing css. closes odoo/odoo#56421 Signed-off-by: Quentin De Paoli (qdp) --- .../fleet/views/fleet_vehicle_model_views.xml | 4 +- odoo/addons/base/static/src/css/modules.css | 52 +++---------------- .../wizard/base_module_uninstall_views.xml | 34 ++++++------ 3 files changed, 27 insertions(+), 63 deletions(-) diff --git a/addons/fleet/views/fleet_vehicle_model_views.xml b/addons/fleet/views/fleet_vehicle_model_views.xml index 474f43b1b24..fc8aed6f0a6 100644 --- a/addons/fleet/views/fleet_vehicle_model_views.xml +++ b/addons/fleet/views/fleet_vehicle_model_views.xml @@ -33,8 +33,8 @@
-
-
+
+
diff --git a/odoo/addons/base/static/src/css/modules.css b/odoo/addons/base/static/src/css/modules.css index f1156464ed1..b3a011708a2 100644 --- a/odoo/addons/base/static/src/css/modules.css +++ b/odoo/addons/base/static/src/css/modules.css @@ -1,16 +1,20 @@ .oe_module_icon { width: 70px; - height: 70px; + max-height: 70px; + max-width: 23%; float: left; } .oe_module_desc { font-size: 13px; + padding-left: 10px; + width: 77%; } -.oe_module_icon + .oe_module_desc { - padding-left: 80px; +.o_kanban_view .oe_module_vignette.o_kanban_record { + align-items: center; + display: flex; } .o_modules_kanban.o_kanban_view .o_kanban_record .o_dropdown_kanban { @@ -54,45 +58,3 @@ max-width: 70px; max-height: 70px; } - -/*.oe_module_icon { - width: 45px; - height: 45px; - float: left; -} - -.oe_module_desc > h4, .oe_module_desc > .oe_module_name { - margin-right: 20px; - - display: block; - max-width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - vertical-align: top; -} - -.oe_module_desc > h4 { - margin-top: 0; -} - -.oe_module_desc { - min-width: 0; -} - -.oe_module_name { - margin-top: 8px; - font-size: small; -} - - -.oe_module_icon + .oe_module_desc { - margin-left: 10px; -} - -.oe_module_action { - margin-top: 10px; - padding-top: 10px; - border-top: 1px solid #F9F9F9; - position: relative; -}*/ diff --git a/odoo/addons/base/wizard/base_module_uninstall_views.xml b/odoo/addons/base/wizard/base_module_uninstall_views.xml index dd6de1bb3c2..9fc5ff23c64 100644 --- a/odoo/addons/base/wizard/base_module_uninstall_views.xml +++ b/odoo/addons/base/wizard/base_module_uninstall_views.xml @@ -13,24 +13,26 @@ - - + - - -
- Icon -
-

-

-
- -

+ + +
+ + Icon +
+

+   +

+

+ + + +

+
-
- - + +

The following documents will be permanently lost