diff --git a/list_view_sticky_header_and_column/__manifest__.py b/list_view_sticky_header_and_column/__manifest__.py index 175c509f9..c81075ca4 100644 --- a/list_view_sticky_header_and_column/__manifest__.py +++ b/list_view_sticky_header_and_column/__manifest__.py @@ -39,7 +39,7 @@ 'web.assets_backend': [ # 'list_view_sticky_header_and_column/static/src/scss/form.scss', 'list_view_sticky_header_and_column/static/src/js/list_view_sticky_header_and_column.js', - 'list_view_sticky_header_and_column/static/src/xml/list_view_sticky_header_and_column.xml', + # 'list_view_sticky_header_and_column/static/src/xml/list_view_sticky_header_and_column.xml', 'list_view_sticky_header_and_column/static/src/scss/list_view_sticky_header_and_column.scss', ], }, diff --git a/list_view_sticky_header_and_column/static/src/scss/list_view_sticky_header_and_column.scss b/list_view_sticky_header_and_column/static/src/scss/list_view_sticky_header_and_column.scss index dd90a4e9d..fd81c78ff 100644 --- a/list_view_sticky_header_and_column/static/src/scss/list_view_sticky_header_and_column.scss +++ b/list_view_sticky_header_and_column/static/src/scss/list_view_sticky_header_and_column.scss @@ -25,6 +25,36 @@ background-color: white; } +.o_list_view .o_list_table thead th:first-child{ + position: sticky !important; + top: 0 !important; + left:0 !important; + z-index: 2 !important; + background-color: white !important; +} + +.o_list_view .o_list_table thead th:nth-child(2){ + position: sticky !important; + top: 0 !important; + left:40px !important; + z-index: 2 !important; + background-color: white !important; +} + +.o_list_view .o_list_table td:first-child { + position: sticky !important; + z-index: 3 !important; + left:0 !important; + background-color: white !important; +} + +.o_list_view .o_list_table td:nth-child(2) { + position: sticky !important; + z-index: 3 !important; + left:40px !important; + background-color: white !important; +} + .o_account_reports_page .table-responsive { overflow-x: auto; overflow-y: visible; @@ -75,6 +105,7 @@ th.clicked-header .fa-thumb-tack { display: block; } + //.o_input:hover{background: #b3c8df!important;} @@ -87,8 +118,8 @@ th.clicked-header .fa-thumb-tack { th, td { white-space: nowrap; // 默认不换行 - overflow: hidden; // 超出部分隐藏 - text-overflow: ellipsis; // 超出部分显示省略号 + overflow: visible; // 超出部分不隐藏 +// text-overflow: ellipsis; // 超出部分显示省略号 } td.long-text { @@ -96,4 +127,33 @@ th.clicked-header .fa-thumb-tack { word-wrap: break-word; // 允许长单词换行 } } +} +.o_list_view { + .o_list_table { + .o_list_button { + text-overflow: ellipsis; + white-space: nowrap; + } + } +} + + +/* WebKit浏览器 */ +::-webkit-scrollbar { + width: 12px; + height: 12px; +} +::-webkit-scrollbar-thumb { + background-color: darkgrey; + border-radius: 10px; + border: 2px solid #ffffff; +} +::-webkit-scrollbar-track { + background: #f1f1f1; +} + +/* Gecko浏览器(Firefox) */ +html { + scrollbar-width: thin; /* 或者使用 'auto' 让浏览器决定 */ + scrollbar-color: darkgrey white; /* 设置滑块和轨道颜色 */ } \ No newline at end of file