From 26d489c6e1df6f33bad716dd7ea0ff2837a5d765 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Wed, 12 May 2021 09:49:55 +0200 Subject: [PATCH] [FIX] theme: improve search bar implementation and behavior This commit removes the extra search bar that was dedicated to the mobile layout and adapts the desktop's one to be compatible with mobile. It also brings back the "Hide Search Matches" button. --- extensions/odoo_theme/layout.html | 4 ---- .../odoo_theme/layout_templates/searchbox.html | 3 +-- extensions/odoo_theme/static/style.scss | 16 ++++++++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index a4cd60526..0c1a31f44 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -91,10 +91,6 @@ {%- set main_classes = main_classes + ['o_fullwidth_page'] %} {%- endif %} -
- - {%- include "layout_templates/searchbox.html" %} -
{%- if pagename == master_doc %} {# Custom landing page on the root of the documentation #} diff --git a/extensions/odoo_theme/layout_templates/searchbox.html b/extensions/odoo_theme/layout_templates/searchbox.html index 103b3b8b2..22c7b5f90 100644 --- a/extensions/odoo_theme/layout_templates/searchbox.html +++ b/extensions/odoo_theme/layout_templates/searchbox.html @@ -1,6 +1,5 @@ {# NOTE: the 'searchbox' id is used to hook the "Hide Search Matches" button #} -{# NOTE: currently renamed to '_searchbox' to hide the button until it receives proper styling #} -