From a1456ad051eddf857e864f5e4e8cc8d9e4274d41 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Thu, 16 Nov 2023 11:45:55 +0100 Subject: [PATCH] [FIX] website_forum: fix design to work better with web editor and more Some changes have been made for the design to function better with the web editor. We've force the Y margins on headings to `0` and switched some font size classes. Using a `fs-5` on the `fa-check-circle` breaks the layout if the heading size is changed so it has been swapped for a `fa-lg`. To be aligned with other frontend layouts, the `oi-chevron`s used in buttons have been switched for `.fa-angle`. By adding a condition to one of the wrapping `div`s in the header we a avoid the empty `div`. Instead of using a `row` without a `col` child, we use a `d-flex`. task-3555851 Part-of: odoo/odoo#145891 --- addons/website_forum/views/forum_forum_templates.xml | 2 +- .../views/forum_forum_templates_forum_all.xml | 2 +- .../views/forum_forum_templates_layout.xml | 12 ++++++------ .../views/forum_forum_templates_post.xml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/website_forum/views/forum_forum_templates.xml b/addons/website_forum/views/forum_forum_templates.xml index 823b6eb86a1..5ae739b7217 100644 --- a/addons/website_forum/views/forum_forum_templates.xml +++ b/addons/website_forum/views/forum_forum_templates.xml @@ -60,7 +60,7 @@
diff --git a/addons/website_forum/views/forum_forum_templates_forum_all.xml b/addons/website_forum/views/forum_forum_templates_forum_all.xml index e5d4b947182..84475077f0f 100644 --- a/addons/website_forum/views/forum_forum_templates_forum_all.xml +++ b/addons/website_forum/views/forum_forum_templates_forum_all.xml @@ -40,7 +40,7 @@ t-attf-style="background-image: url('#{website.image_url(forum, 'image_1920') if forum.image_1920 else ''}')" >
-
+

diff --git a/addons/website_forum/views/forum_forum_templates_layout.xml b/addons/website_forum/views/forum_forum_templates_layout.xml index 9031167e3d3..d0362763848 100644 --- a/addons/website_forum/views/forum_forum_templates_layout.xml +++ b/addons/website_forum/views/forum_forum_templates_layout.xml @@ -29,7 +29,7 @@
@@ -39,7 +39,7 @@
-

+

@@ -93,7 +93,7 @@
-
+
-
+ diff --git a/addons/website_forum/views/forum_forum_templates_post.xml b/addons/website_forum/views/forum_forum_templates_post.xml index 07d37bd6869..7700bacd20b 100644 --- a/addons/website_forum/views/forum_forum_templates_post.xml +++ b/addons/website_forum/views/forum_forum_templates_post.xml @@ -375,7 +375,7 @@ data-bs-toggle="tooltip" t-attf-data-target="#answer-#{post_id.id}" t-attf-data-href="/forum/#{ slug(question.forum_id) }/post/#{ slug(answer) }/toggle_correct"> - +