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. 38
      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': {
'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,

38
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;
.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;
}

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

@ -8,7 +8,7 @@
<attribute name="class">cb_sticky</attribute>
</xpath>
<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>
</t>
</templates>
Loading…
Cancel
Save