智能体按 reply_code 读后台回复语;陆运整车报价单顶栏色与填表更稳,工单页展示同步收紧。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,6 +30,13 @@ body {
|
||||
background: #f7f8fb !important;
|
||||
min-width: 0 !important;
|
||||
overflow-x: hidden;
|
||||
/* 主区锁视口高度:列表页表格区内滚;看板等非列表页在 .admin-content 内滚 */
|
||||
height: 100vh !important;
|
||||
max-height: 100vh !important;
|
||||
min-height: 0 !important;
|
||||
overflow: hidden !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
@@ -37,6 +44,9 @@ body {
|
||||
gap: 12px !important;
|
||||
min-width: 0 !important;
|
||||
overflow-x: hidden;
|
||||
flex: 1 1 auto !important;
|
||||
min-height: 0 !important;
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -559,12 +569,11 @@ body {
|
||||
gap: 12px 16px !important;
|
||||
}
|
||||
|
||||
/* 中间列横滑;左右 sticky 列固定 */
|
||||
/* 中间列横滑;左右 sticky 列固定。竖滚改由 .is-list-page 表格区承接,勿再用 visible 把滚动甩给整页 */
|
||||
.ticket-page .table-wrap,
|
||||
.ticket-table-scroll {
|
||||
border-radius: 10px !important;
|
||||
overflow-x: auto !important;
|
||||
overflow-y: visible;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
@@ -1415,3 +1424,102 @@ textarea.field.field-tall {
|
||||
align-items: start !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表页固定搜索区 / 表头 / 底部分页,表格区内双轴滚动。
|
||||
* 根节点加 .is-list-page(工单、员工、账号、角色、报价模板)。
|
||||
* 这样横向滚动条始终贴在表格可视区底部,不必滚到文档末尾才看到。
|
||||
*/
|
||||
.admin-content:has(> .is-list-page) {
|
||||
overflow: hidden !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
padding-bottom: 16px !important;
|
||||
}
|
||||
|
||||
.admin-content > .is-list-page {
|
||||
flex: 1 1 auto !important;
|
||||
min-height: 0 !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/* 工单页:外壳 is-list-page,内层 section-card 撑满 */
|
||||
.admin-content > .is-list-page > .section-card {
|
||||
flex: 1 1 auto !important;
|
||||
min-height: 0 !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
overflow: hidden !important;
|
||||
gap: 12px !important;
|
||||
}
|
||||
|
||||
/* 账号/员工/角色/模板:section-card 自身即 is-list-page */
|
||||
.admin-content > .section-card.is-list-page {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 12px !important;
|
||||
}
|
||||
|
||||
.is-list-page .section-card-header,
|
||||
.is-list-page .tabs-line-bar,
|
||||
.is-list-page .toolbar,
|
||||
.is-list-page .pagination {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.is-list-page .table-wrap,
|
||||
.is-list-page .qt-template-table-wrap {
|
||||
flex: 1 1 auto !important;
|
||||
min-height: 0 !important;
|
||||
overflow: auto !important;
|
||||
overflow-x: auto !important;
|
||||
overflow-y: auto !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* 竖向滚动时表头钉在表格区顶部 */
|
||||
.is-list-page .data-table thead th {
|
||||
position: sticky !important;
|
||||
top: 0 !important;
|
||||
z-index: 4 !important;
|
||||
background: #f8fafc !important;
|
||||
box-shadow: 0 1px 0 var(--line, #d9e2ef);
|
||||
}
|
||||
|
||||
/* 左/右冻结列与表头交叉处抬高层级,避免横滑时被盖住 */
|
||||
.is-list-page .data-table thead th:first-child,
|
||||
.is-list-page .data-table thead th.col-sticky-left {
|
||||
left: 0 !important;
|
||||
z-index: 6 !important;
|
||||
}
|
||||
|
||||
.is-list-page .data-table thead th:last-child,
|
||||
.is-list-page .data-table thead th.col-sticky-right {
|
||||
right: 0 !important;
|
||||
z-index: 6 !important;
|
||||
}
|
||||
|
||||
.is-list-page .data-table tbody td:first-child,
|
||||
.is-list-page .data-table tbody td.col-sticky-left {
|
||||
position: sticky !important;
|
||||
left: 0 !important;
|
||||
z-index: 3 !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.is-list-page .data-table tbody td:last-child,
|
||||
.is-list-page .data-table tbody td.col-sticky-right {
|
||||
position: sticky !important;
|
||||
right: 0 !important;
|
||||
z-index: 3 !important;
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.is-list-page .data-table tbody tr:hover td:first-child,
|
||||
.is-list-page .data-table tbody tr:hover td:last-child,
|
||||
.is-list-page .data-table tbody tr:hover td.col-sticky-left,
|
||||
.is-list-page .data-table tbody tr:hover td.col-sticky-right {
|
||||
background: #f8fbff !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user