From 7b370d28f7d506fadeeeb946fc96db038f7c97d9 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Tue, 26 Jul 2022 08:49:02 +0000 Subject: [PATCH] [IMP] mass_mailing: amend icons alignment Since removing the "Styles" option and the CSS that went with it, there is an issue with the center alignment on icons. Indeed, having a fixed width/height value on `fa.rounded` allowed the icon to be centered along with its background. By removing the fixed with/height values, the center alignment (using `.mx-auto` and `.d-block`) would center the icon but stretch the background color to the full width of the parent. To achieve the same result, the cheat is to set the default value of the wrapping block to text-center and remove `.mx-auto` and `.d-block`. closes odoo/odoo#95974 Signed-off-by: David Monjoie (dmo) --- .../mass_mailing/views/snippets/s_features_grid.xml | 12 ++++++------ addons/mass_mailing/views/snippets_themes.xml | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/addons/mass_mailing/views/snippets/s_features_grid.xml b/addons/mass_mailing/views/snippets/s_features_grid.xml index 09d3ed7d544..d26bdd49225 100644 --- a/addons/mass_mailing/views/snippets/s_features_grid.xml +++ b/addons/mass_mailing/views/snippets/s_features_grid.xml @@ -14,7 +14,7 @@
-
+
@@ -23,7 +23,7 @@
-
+
@@ -32,7 +32,7 @@
-
+
@@ -51,7 +51,7 @@
-
+
@@ -60,7 +60,7 @@
-
+
@@ -69,7 +69,7 @@
-
+
diff --git a/addons/mass_mailing/views/snippets_themes.xml b/addons/mass_mailing/views/snippets_themes.xml index 8292191fa63..0b7367adefe 100644 --- a/addons/mass_mailing/views/snippets_themes.xml +++ b/addons/mass_mailing/views/snippets_themes.xml @@ -361,9 +361,8 @@
- None Left - Center + Center Right