index(v2): 会话页左缘右滑打开历史抽屉、会话列表加状态胶囊、侧边栏展示真实用户

This commit is contained in:
2026-09-03 14:44:24 +08:00
parent 2e51071109
commit 866cc7678c
2 changed files with 104 additions and 7 deletions
+12 -2
View File
@@ -273,13 +273,23 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
.drawer-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; }
.group-label { padding: 14px 10px 6px; font-size: 11px; color: var(--gray); }
.conv-item {
display: block; width: 100%; text-align: left;
display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
padding: 12px 10px; border-radius: 12px;
font-size: 14px; color: var(--ink);
overflow: hidden;
}
.conv-title {
flex: 1; min-width: 0;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-item:active { background: var(--surface); }
.conv-item.active { background: var(--active-soft); color: var(--active); }
/* 会话行内状态胶囊:比状态栏版本更紧凑 */
.conv-item .status-pill {
flex: none; font-size: 10px; line-height: 1.2; padding: 2px 7px; border-radius: 8px;
gap: 4px;
}
.conv-item .status-pill::before { width: 5px; height: 5px; }
.drawer-empty { padding: 24px 10px; font-size: 13px; color: var(--gray-light); text-align: center; }
/* 底部用户区 */
@@ -290,7 +300,7 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
}
.avatar {
width: 36px; height: 36px; border-radius: 50%; flex: none;
background: linear-gradient(135deg, var(--active), #7f9dff);
background: var(--active); /* 真实用户名下的头像:JS 按用户名取色内联覆盖,与设置页 user-card 一致 */
color: #fff; display: flex; align-items: center; justify-content: center;
font-size: 15px; font-weight: 600;
}