Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

EdgeChat 从 `2.1.2` 起正式采用语义化版本。更早的版本号依据已经完成的主要里程碑补记,用于说明项目演进,不对应历史 Git 标签。

## 2.6.1 - 2026-09-13

- 重塑网页聊天工作区视觉层级:使用浅灰绿画布、白色栏面与深绿主操作,统一 44px 触控控件、80px 会话和通讯录行,并强化选中与未读状态。
- 优化桌面和窄屏聊天布局:输入框在 480px 以下独占首行,工具栏移至次行;成员面板改为覆盖层,空会话增加明确引导,消息气泡与时间戳留白同步调整。
- 本次仅调整 Vue Web 样式与视觉契约,不新增数据库迁移、云资源或 Android 原生改动。

## 2.6.0 - 2026-09-13

- 新增所有已登录用户可用的站内通讯录,默认仅展示头像和姓名,支持姓名/用户名搜索,并按需复用既有资料卡与私信打开流程。
Expand Down
84 changes: 61 additions & 23 deletions frontend/src/components/chat/ConversationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const emit = defineEmits(["select"]);
:key="item.key"
type="button"
class="sidebar-item"
:class="{ 'sidebar-item--active': activeKey === item.key }"
:class="{ 'sidebar-item--active': activeKey === item.key, 'sidebar-item--unread': item.unreadCount > 0 }"
:aria-current="activeKey === item.key ? 'true' : undefined"
:title="item.title"
@click="emit('select', item)"
>
<UiAvatar
Expand Down Expand Up @@ -80,7 +82,8 @@ const emit = defineEmits(["select"]);
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 0;
padding: 0 0 8px;
scrollbar-gutter: stable;
touch-action: pan-y;
}

Expand All @@ -90,25 +93,26 @@ const emit = defineEmits(["select"]);

.sidebar-list::-webkit-scrollbar-thumb {
border-radius: 2px;
background: rgba(0, 0, 0, 0.15);
background: var(--chat-scrollbar);
}

.sidebar-hint {
display: flex;
align-items: center;
justify-content: center;
padding: 24px 8px;
color: #8696a0;
color: var(--chat-subtle);
font-size: 13px;
}

.sidebar-item {
display: flex;
align-items: center;
gap: 12px;
width: calc(100% - 16px);
margin: 4px 8px;
padding: 12px 16px;
width: calc(100% - 24px);
min-height: 80px;
margin: 2px 12px;
padding: 12px;
border: none;
border-radius: 12px;
background: transparent;
Expand All @@ -119,20 +123,31 @@ const emit = defineEmits(["select"]);
}

.sidebar-item:hover {
background: #f5f6f6;
background: var(--chat-hover);
}

.sidebar-item:active {
background: rgba(0, 0, 0, 0.08);
}

.sidebar-item--active {
background: #f0f2f5;
.sidebar-item--active,
.sidebar-item--active:hover {
background: var(--chat-selected);
box-shadow: inset 3px 0 var(--chat-accent);
}

.sidebar-item:focus-visible {
outline: 2px solid var(--chat-accent);
outline-offset: -2px;
}

/* biome-ignore lint/correctness/noUnknownPseudoClass: Vue deep selector */
.sidebar-item :deep(.ui-avatar) {
flex-shrink: 0;
width: 44px;
height: 44px;
border-radius: 50%;
box-shadow: none;
}

.sidebar-label-group {
Expand All @@ -149,7 +164,7 @@ const emit = defineEmits(["select"]);

.sidebar-item__top strong {
overflow: hidden;
color: #111b21;
color: var(--chat-ink);
font-size: 15px;
font-weight: 500;
text-overflow: ellipsis;
Expand All @@ -158,48 +173,62 @@ const emit = defineEmits(["select"]);

.sidebar-item__time {
flex-shrink: 0;
color: #667781;
color: var(--chat-muted);
font-size: 12px;
font-variant-numeric: tabular-nums;
}

.sidebar-item__bottom {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
margin-top: 4px;
margin-top: 6px;
}

.sidebar-item__preview {
flex: 1;
min-width: 0;
margin: 0;
overflow: hidden;
color: #667781;
color: var(--chat-muted);
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}

.sidebar-item--unread .sidebar-item__preview {
color: var(--chat-ink);
}

.sidebar-item--unread .sidebar-item__top strong {
font-weight: 700;
}

.sidebar-item--unread .sidebar-item__time {
color: var(--chat-accent);
font-weight: 600;
}

.sidebar-muted-indicator {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
color: #8696a0;
color: var(--chat-subtle);
}

.sidebar-unread-badge {
display: inline-flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: #25d366;
color: #ffffff;
background: var(--chat-accent);
color: var(--chat-paper);
font-size: 11px;
font-variant-numeric: tabular-nums;
font-weight: 700;
Expand All @@ -211,7 +240,7 @@ const emit = defineEmits(["select"]);
flex: 0 0 auto;
align-items: center;
gap: 2px;
color: #d93025;
color: var(--chat-danger);
font-size: 11px;
font-weight: 700;
white-space: nowrap;
Expand All @@ -221,19 +250,28 @@ const emit = defineEmits(["select"]);
.sidebar-list {
padding-bottom: max(8px, env(safe-area-inset-bottom));
overscroll-behavior: contain;
scrollbar-gutter: auto;
}

.sidebar-item {
width: 100%;
min-height: 68px;
min-height: 80px;
margin: 0;
padding: 11px max(16px, env(safe-area-inset-right)) 11px
max(16px, env(safe-area-inset-left));
border-radius: 0;
}

.sidebar-item + .sidebar-item {
border-top: 1px solid #f0f2f5;
/* 分隔线从正文起笔,避免头像和内容被粗重的整行边框割开。 */
.sidebar-item { position: relative; }
.sidebar-item + .sidebar-item::before {
content: "";
position: absolute;
top: 0;
right: 16px;
left: 72px;
height: 1px;
background: var(--chat-line);
}
}

Expand Down
Loading
Loading