Browse Source

May 29 [UPDT] : Bug Fixed 'sticky_pivot_view'

pull/257/head
AjmalCybro 2 years ago
parent
commit
dbe4678d43
  1. 2
      sticky_pivot_view/__manifest__.py
  2. 36
      sticky_pivot_view/static/src/css/main.css
  3. 2
      sticky_pivot_view/static/src/xml/pivot.xml

2
sticky_pivot_view/__manifest__.py

@ -37,7 +37,7 @@
'assets': { 'assets': {
'web.assets_backend': [ 'web.assets_backend': [
'/sticky_pivot_view/static/src/css/main.css', '/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, 'installable': True,

36
sticky_pivot_view/static/src/css/main.css

@ -4,32 +4,38 @@
z-index : 10; z-index : 10;
} }
tbody tr .text-nowrap{
background-color: white;
left : 0;
outline: 1px solid #dee2e6;
}
.cb_sticky tr th { .cb_sticky tr th {
outline: 1px solid #dee2e6; outline: 1px solid #dee2e6;
border: none; border: none;
outline-offset: -1px; outline-offset: -1px;
left: 0; left: 0;
position: sticky !important; background-color: white;
} }
thead tr .cb_sticky_first_child{
.cb_sticky_first_child{ position: sticky;
z-index: 10;
font-weight: 400 !important;
} }
tbody .o_pivot_header_cell_opened { tbody tr .o_pivot_header_cell_closed{
position: sticky; position: sticky;
left : 0;
outline: 1px solid #dee2e6;
} }
tbody tr .o_pivot_header_cell_opened{
tbody .o_pivot_header_cell_closed {
position: sticky; position: sticky;
left : 0;
outline: 1px solid #dee2e6;
} }
tbody .dropdown > .dropdown-menu.o_pivot_field_menu.show { .o-dropdown.dropdown.o_group_by_menu{
left : 104%; position: relative !important;
margin: -20px 0px 0px 0px; 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;
}

2
sticky_pivot_view/static/src/xml/pivot.xml

@ -8,7 +8,7 @@
<attribute name="class">cb_sticky</attribute> <attribute name="class">cb_sticky</attribute>
</xpath> </xpath>
<xpath expr="//thead/tr/t/th[contains(@t-att-colspan, 'cell.width')]" position="attributes"> <xpath expr="//thead/tr/t/th[contains(@t-att-colspan, 'cell.width')]" position="attributes">
<attribute name="class">cb_sticky_first_child bg-100</attribute> <attribute name="class">cb_sticky_first_child</attribute>
</xpath> </xpath>
</t> </t>
</templates> </templates>
Loading…
Cancel
Save