From 8366f30360bd1f92423259373bbeac899de791a5 Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Mon, 18 Nov 2024 10:36:01 +0100 Subject: [PATCH] [FIX] theme_*: fix numbers snippets layout across themes *: nano, notes, odoo_experts, treehouse, zap This commit reviews the occurrences of the `s_numbers_*` snippets to align them with the new layout of these snippets. Prior to this commit, the layout of those snippet was "broken" due to weird structure like nested rows, .. which prevents the editor to apply a change on the whole content. As we reworked the layout of these snippets to fix the issue, we need to apply these changes in themes as well. task-4223179 closes odoo/design-themes#1012 Related: odoo/odoo#185688 Signed-off-by: Quentin Smetz (qsm) --- theme_nano/views/snippets/s_numbers.xml | 8 ++- theme_notes/views/snippets/s_numbers.xml | 19 +++---- .../views/snippets/s_numbers_list.xml | 56 +++++++++---------- .../views/snippets/s_numbers_list.xml | 36 ++++-------- theme_zap/views/snippets/s_numbers.xml | 12 ++-- 5 files changed, 57 insertions(+), 74 deletions(-) diff --git a/theme_nano/views/snippets/s_numbers.xml b/theme_nano/views/snippets/s_numbers.xml index f7c2ccf14..a7ac367f3 100644 --- a/theme_nano/views/snippets/s_numbers.xml +++ b/theme_nano/views/snippets/s_numbers.xml @@ -6,20 +6,24 @@ - - + +

50+
Happy customers

+
+

40h
Average shipping time

+
+

4.5
diff --git a/theme_notes/views/snippets/s_numbers.xml b/theme_notes/views/snippets/s_numbers.xml index 32f023ca9..5cb631f08 100644 --- a/theme_notes/views/snippets/s_numbers.xml +++ b/theme_notes/views/snippets/s_numbers.xml @@ -10,34 +10,31 @@ - - + + - - + + - Editions through the Europe - - + + - 72 Artists from around the world - - + + - Scenes outdoor & indoor diff --git a/theme_odoo_experts/views/snippets/s_numbers_list.xml b/theme_odoo_experts/views/snippets/s_numbers_list.xml index 39b5e8c02..b83feb4f0 100644 --- a/theme_odoo_experts/views/snippets/s_numbers_list.xml +++ b/theme_odoo_experts/views/snippets/s_numbers_list.xml @@ -3,7 +3,7 @@ diff --git a/theme_treehouse/views/snippets/s_numbers_list.xml b/theme_treehouse/views/snippets/s_numbers_list.xml index 62eb5b973..009595fe4 100644 --- a/theme_treehouse/views/snippets/s_numbers_list.xml +++ b/theme_treehouse/views/snippets/s_numbers_list.xml @@ -16,40 +16,28 @@ From carbon footprint reduction to renewable energy adoption and biodiversity preservation, our key milestones reflect our commitment to creating a sustainable future for all. - - 45% - + 45%
Reduction in carbon emissions
- - 2 Million - - Trees Planted - - - 85% - - + 85%
Waste diversion rate
- - 1.2 Billion - - - Liters of water saved - - - 60% - - + + 60%
Renewable Energy usage
- - 500,000 + + 2 Million
+ Trees Planted +
+ + 1.2 Billion
+ Liters of water saved
+ 500,000
Tons of materials recycled
diff --git a/theme_zap/views/snippets/s_numbers.xml b/theme_zap/views/snippets/s_numbers.xml index c6029afb9..38a13d9a9 100644 --- a/theme_zap/views/snippets/s_numbers.xml +++ b/theme_zap/views/snippets/s_numbers.xml @@ -6,16 +6,16 @@ - - + + Solutions - - + + @@ -25,8 +25,8 @@ Happy customers - - + +