From c0040fa53225623b03413e26ac5f5fb61f8b7db0 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Wed, 8 Jun 2022 09:05:14 +0000 Subject: [PATCH] [IMP] odoo_theme: show the "On this page" section in mobile When the page gets too small for the "On this page" section (local tree of content) to fit on the page, the section is now moved above the menu (global tree of content) rather than being hidden. task-2800970 closes odoo/documentation#2179 Signed-off-by: Antoine Vandevenne (anv) Co-authored-by: Antoine Vandevenne (anv) --- extensions/odoo_theme/layout.html | 14 +++-- extensions/odoo_theme/static/js/menu.js | 14 ++--- extensions/odoo_theme/static/js/page_toc.js | 49 +++++++++-------- extensions/odoo_theme/static/style.scss | 58 +++++++++++++-------- 4 files changed, 82 insertions(+), 53 deletions(-) diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index 17b92a107..39921fcd6 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -62,12 +62,20 @@ {# Shown when the JS has properly set all the classes on the TOC elements #} -