From dbe4678d43dea799ea767f83ba537a4ab4b229ad Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 29 May 2023 19:23:31 +0530 Subject: [PATCH] May 29 [UPDT] : Bug Fixed 'sticky_pivot_view' --- sticky_pivot_view/__manifest__.py | 2 +- sticky_pivot_view/static/src/css/main.css | 40 +++++++++++++--------- sticky_pivot_view/static/src/xml/pivot.xml | 4 +-- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/sticky_pivot_view/__manifest__.py b/sticky_pivot_view/__manifest__.py index 1be0fd254..22d242e9f 100644 --- a/sticky_pivot_view/__manifest__.py +++ b/sticky_pivot_view/__manifest__.py @@ -37,7 +37,7 @@ 'assets': { 'web.assets_backend': [ '/sticky_pivot_view/static/src/css/main.css', - '/sticky_pivot_view/static/src/xml/pivot.xml' + '/sticky_pivot_view/static/src/xml/pivot.xml', ], }, 'installable': True, diff --git a/sticky_pivot_view/static/src/css/main.css b/sticky_pivot_view/static/src/css/main.css index c690d13ea..b0d81658d 100644 --- a/sticky_pivot_view/static/src/css/main.css +++ b/sticky_pivot_view/static/src/css/main.css @@ -4,32 +4,38 @@ z-index : 10; } -.cb_sticky tr th{ +tbody tr .text-nowrap{ + background-color: white; + left : 0; + outline: 1px solid #dee2e6; +} + +.cb_sticky tr th { outline: 1px solid #dee2e6; border: none; outline-offset: -1px; left: 0; - position: sticky !important; + background-color: white; } - -.cb_sticky_first_child{ - z-index: 10; - font-weight: 400 !important; +thead tr .cb_sticky_first_child{ + position: sticky; } -tbody .o_pivot_header_cell_opened { +tbody tr .o_pivot_header_cell_closed{ position: sticky; - left : 0; - outline: 1px solid #dee2e6; } - -tbody .o_pivot_header_cell_closed { +tbody tr .o_pivot_header_cell_opened{ position: sticky; - left : 0; - outline: 1px solid #dee2e6; } -tbody .dropdown > .dropdown-menu.o_pivot_field_menu.show { - left : 104%; - margin: -20px 0px 0px 0px; -} \ No newline at end of file +.o-dropdown.dropdown.o_group_by_menu{ + position: relative !important; + display: block !important; +} + +th .o-dropdown.dropdown.o_group_by_menu > .o-dropdown--menu.dropdown-menu{ + position: absolute !important; + left: 105% !important; + top: 100% !important; +} + diff --git a/sticky_pivot_view/static/src/xml/pivot.xml b/sticky_pivot_view/static/src/xml/pivot.xml index b7f040263..cfb790b40 100644 --- a/sticky_pivot_view/static/src/xml/pivot.xml +++ b/sticky_pivot_view/static/src/xml/pivot.xml @@ -8,7 +8,7 @@ cb_sticky - cb_sticky_first_child bg-100 + cb_sticky_first_child - \ No newline at end of file +