From db6f7a84b18920cb7da0f612c64428aeeaf72cc0 Mon Sep 17 00:00:00 2001 From: QS5ELkMu Date: Sun, 1 Jul 2018 02:37:18 +0200 Subject: [PATCH] [IMP] Add sticky header & footer in list view --- web_responsive/static/src/less/form_view.less | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/web_responsive/static/src/less/form_view.less b/web_responsive/static/src/less/form_view.less index 6a6a78a7..f94b0072 100644 --- a/web_responsive/static/src/less/form_view.less +++ b/web_responsive/static/src/less/form_view.less @@ -52,6 +52,24 @@ } } +// Sticky Header & Footer in List View +.o_view_manager_content { + >div { + >.table-responsive { + >.o_list_view { + thead { + position: sticky; + top: 0; + } + tfoot { + position: sticky; + bottom: 0; + } + } + } + } +} + .o_form_view { // Form must fill 100% width in any size .o_form_sheet_bg { @@ -69,6 +87,12 @@ border: none; } } + + .o_form_statusbar { + position: sticky; + top: 0; + z-index: 1; + } } // No overflowing buttons or titles @@ -152,10 +176,4 @@ .oe_chatter { min-width: inherit; } - - .o_form_statusbar { - position: sticky; - top: 0; - z-index: 1; - } }