fix: UI improvements and DingTalk attendance refresh for completed sessions
All checks were successful
CI / check (pull_request) Successful in 1m33s
All checks were successful
CI / check (pull_request) Successful in 1m33s
- DatePicker editors open immediately on double-click - Student archive drawer hides empty studentNo parentheses - Student add/edit form uses 2-column grid layout - Table horizontal scrollbars show only on hover/focus - Remove fake 近7日趋势 stats from attendance student detail - Allow DingTalk refresh to update completed attendance sessions (late-arriving punches can now change absent → present) - Switch dev command from concurrently to turbo run dev - Remove concurrently/wait-on dependencies
This commit is contained in:
@@ -157,6 +157,22 @@ canvas {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.student-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: 20px;
|
||||
}
|
||||
|
||||
.student-form-grid .ant-form-item {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
.student-form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-drawer-content-wrapper {
|
||||
max-width: 100vw !important;
|
||||
}
|
||||
@@ -178,6 +194,35 @@ canvas {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* Keep wide tables scrollable without showing a heavy bar on every table. */
|
||||
.ant-table-wrapper .ant-table-content {
|
||||
scrollbar-color: transparent transparent;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-content::-webkit-scrollbar {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-content::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-content::-webkit-scrollbar-thumb {
|
||||
background: transparent;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.ant-table-wrapper:hover .ant-table-content,
|
||||
.ant-table-wrapper:focus-within .ant-table-content {
|
||||
scrollbar-color: #c8c8cc transparent;
|
||||
}
|
||||
|
||||
.ant-table-wrapper:hover .ant-table-content::-webkit-scrollbar-thumb,
|
||||
.ant-table-wrapper:focus-within .ant-table-content::-webkit-scrollbar-thumb {
|
||||
background: #c8c8cc;
|
||||
}
|
||||
|
||||
/* ── 表格单元格省略号截断(按需启用) ──
|
||||
在 .ant-table-wrapper 上添加 .table-cell-ellipsis 类即可生效:
|
||||
<Table className="table-cell-ellipsis" ... /> */
|
||||
|
||||
Reference in New Issue
Block a user