From 1c79cbe778e8020a42b853128e5ea7e9dfb2fc5e Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Tue, 26 Dec 2023 10:18:42 +0100 Subject: [PATCH] [FIX] portal: fix layout and spacing issues This commit fixes some layout issues from the portal redesign. The aims of this commit is to : 1) fix some issues with the column layout, mainly in the quotation section. 2) fix some spacing issues by using the right classes and better units. 3) fix the typescale and the information architecture with the right heading tag. 4) fix some layout issues within the column layout and fixing unconsistent layouts shared between different items. 5) fix an issue about the first information of the sidebar often being hidden when scrolling, due to the sticky position of the sidebar task-3651084 Part-of: odoo/odoo#147496 --- .../views/account_portal_templates.xml | 2 +- addons/portal/static/src/scss/portal.scss | 6 + addons/portal/views/portal_templates.xml | 8 +- .../project_portal_project_task_templates.xml | 6 +- addons/purchase/views/portal_templates.xml | 2 +- addons/sale/i18n/sale.pot | 31 ++--- addons/sale/views/sale_portal_templates.xml | 100 +++++++------- addons/sale_stock/i18n/sale_stock.pot | 31 +++-- .../views/sale_stock_portal_template.xml | 122 +++++++++--------- 9 files changed, 150 insertions(+), 158 deletions(-) diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml index 25c42521f8a..1981569bb74 100644 --- a/addons/account/views/account_portal_templates.xml +++ b/addons/account/views/account_portal_templates.xml @@ -108,7 +108,7 @@ -
+
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 67bb8d3fd45..3d2e53ef459 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -356,6 +356,12 @@ img, .media_iframe_video, .o_image { position: relative; } } + + .o_portal_sidebar_content { + @include media-breakpoint-up(lg) { + @include o-position-sticky($top: $spacer * 5); + } + } } // ------------------------------------------------------------ diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index 4e9c72af1fc..991a15af382 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -157,13 +157,13 @@
-
+
-
+

My account

@@ -175,7 +175,7 @@
-
+
@@ -282,7 +282,7 @@