v2.5更新

This commit is contained in:
2026-05-29 17:35:29 +08:00
parent 6c0d8f0e94
commit fe58ee1d23
12 changed files with 258 additions and 24 deletions

View File

@@ -288,6 +288,7 @@ body {
/* ========== 表格 ========== */
.table-wrapper {
overflow-x: auto;
overflow-y: visible;
}
table {
@@ -853,9 +854,9 @@ tr:hover {
.action-dropdown-menu {
display: none;
position: absolute;
top: 100%;
bottom: 100%;
right: 0;
margin-top: 4px;
margin-bottom: 4px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
@@ -926,3 +927,50 @@ tr:hover {
.tag-danger { background: #ffebee; color: #c62828; }
.tag-warning { background: #fff3e0; color: #e65100; }
.tag-info { background: #e3f2fd; color: #1565c0; }
/* ========== 历史记录页优化 ========== */
/* 时间列:确保分两行显示(日期+时间) */
.history-time {
white-space: pre-line;
min-width: 80px;
line-height: 1.5;
word-break: break-all;
}
/* 原因列每行最少7个字自动换行 */
.history-reason {
min-width: 7em;
max-width: 200px;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.5;
}
/* 学生名列:允许换行 */
.history-students {
white-space: normal;
word-break: break-word;
min-width: 60px;
max-width: 120px;
line-height: 1.5;
}
/* 合并记录按钮样式 */
.btn-outline-danger {
background: transparent;
color: var(--color-danger);
border: 1px solid var(--color-danger);
padding: 4px 10px;
font-size: 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.btn-outline-danger:hover {
background: var(--color-danger-light);
color: var(--color-danger-dark);
border-color: var(--color-danger-dark);
}