From 5887847105b428e455edad6464dcaeff0bf859fc Mon Sep 17 00:00:00 2001 From: mano-odoo Date: Mon, 11 Dec 2023 10:44:20 +0000 Subject: [PATCH] [FIX] website_blog: navigation filters dropdown on mobile The blogs filters in mobile is breaking the layout. This commit applies a dropdown or an offcanvas instead which is displayed next to searchbar. In this 17.0 fix, the dropdown becomes an offcanvas if we have a sufficient amount of blogs which allows better navigation on mobile and makes it consistent with other website modules. Additionally it adapts the spacing to make it even between the navigation component. The `t-set="_classes"` is not removed in case of potential xpath in production. Same goes for the `container` class on the div at line 9, being overridden by it's t-attf-class counterpart. task-3315921 closes odoo/odoo#157757 X-original-commit: 19f34c5e0973903b47cf6a5c65cc8888986abaa8 Signed-off-by: Romain Derie (rde) --- .../views/website_blog_components.xml | 68 +++++++++++++++++-- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/addons/website_blog/views/website_blog_components.xml b/addons/website_blog/views/website_blog_components.xml index 085323a82bc..2d3d787d42d 100644 --- a/addons/website_blog/views/website_blog_components.xml +++ b/addons/website_blog/views/website_blog_components.xml @@ -5,9 +5,10 @@