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 d2b731788..f99d6423a 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 @@ -1,159 +1,67 @@ .o_action .o_content { - z-index: 1; + z-index: 1; } .sticky-column { - position: sticky !important; - background-color: white; - z-index: 2; + position: sticky !important; + background-color: white; + z-index: 2; } - .o_list_view .o_list_table td.sticky-column { - z-index: 4; -// background-color: white; + z-index: 4; + background-color: white; } - .o_list_view .o_list_table thead { - position: sticky; - top: 0; - z-index: 3; - background-color: white; + position: sticky; + top: 0; + z-index: 3; + background-color: white; } - .o_list_view .o_list_table th.sticky-column { - z-index: 4 !important; - background-color: white !important; + z-index: 4 !important; + background-color: white; } - -.o_list_view .o_list_table thead th:first-child{ - position: sticky !important; - top: 0 !important; - left:2px !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: 60px !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:2px !important; -// background-color: white !important; -} - -.o_list_view .o_list_table td:nth-child(2) { - position: sticky !important; - z-index: 3 !important; - left:60px !important; -// background-color: white !important; -} - .o_account_reports_page .table-responsive { - overflow-x: auto; - overflow-y: visible; + overflow-x: auto; + overflow-y: visible; } - .table-responsive { - overflow: visible; + overflow: visible; } - .o_list_view .table-responsive .table thead { - z-index: 1; + z-index: 1; } - .o_form_view:not(.o_field_highlight) .o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) { - --o-input-border-color: transparent; - //border-style: solid; - //border-color: #000; - //border-width: 0px; - //border-bottom-width: 1px; + --o-input-border-color: transparent; + //border-style: solid; + //border-color: #000; + //border-width: 0px; + //border-bottom-width: 1px; } - body.white .table { - width: -webkit-fill-available !important; + width: -webkit-fill-available !important; } - .o_list_renderer .o_list_table thead { - position: sticky; - top: 0; - z-index: 6; + position: sticky; + top: 0; + z-index: 6; } - th.sticky-column::before { - content: ""; - position: absolute; - width: 5px; - height: 100%; - background: white; - top: 0; - left: -4px; + content: ""; + position: absolute; + width: 5px; + height: 100%; + background: white !important; + top: 0; + left: -4px; } - .fa-thumb-tack { - display: none; + display: none; } th:hover .fa-thumb-tack, th.clicked-header .fa-thumb-tack { - display: block; + display: block; } - //.o_input:hover{background: #b3c8df!important;} - - -// >>> 青岛火一五信息科技有限公司 - JobZhao - postmaster@huo15.com - 2025/1/28 -// 解决宽度调整 -.o_list_view { - .o_list_table { - table-layout: auto !important; // 让表格宽度根据内容自动调整 - width: 100% !important; // 确保表格宽度占满容器 - - th, td { - white-space: normal !important; // 默认不换行 - overflow: visible !important;; // 超出部分不隐藏 -// text-overflow: ellipsis; // 超出部分显示省略号 - } - - td.long-text { - white-space: normal !important; // 允许换行 - word-wrap: break-word !important; // 允许长单词换行 - } - } -} -.o_list_view { - .o_list_table { - .o_list_button { -// text-overflow: ellipsis; - white-space: nowrap !important; // 默认不换行 - } - } -} - - -/* 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