优化会话列表名称,添加复制和转发,转发待完善

This commit is contained in:
2026-08-07 17:58:36 +08:00
parent 53ca1cd851
commit 96d58abc2f
21 changed files with 1845 additions and 109 deletions

View File

@@ -400,6 +400,191 @@
background: #e0e0e0;
}
/* ========== 转发消息弹窗 ========== */
.forward-modal-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 1001;
display: flex;
align-items: center;
justify-content: center;
}
.forward-modal {
width: 85%;
max-height: 72%;
background-color: #fff;
border-radius: 24rpx;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.12);
}
.forward-modal-header {
display: flex;
justify-content: center;
align-items: center;
position: relative;
padding: 28rpx 30rpx 20rpx;
border-bottom: 2rpx solid #f0f0f0;
}
.forward-modal-title {
font-size: 34rpx;
font-weight: 700;
color: #1a1a2e;
}
.forward-modal-close {
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
}
.forward-preview-box {
margin: 20rpx 30rpx 8rpx;
padding: 20rpx 24rpx;
background: #f7f8fc;
border-radius: 14rpx;
border-left: 6rpx solid #007aff;
}
.forward-preview-label {
font-size: 24rpx;
color: #999;
display: block;
margin-bottom: 8rpx;
}
.forward-preview-text {
font-size: 28rpx;
color: #333;
word-break: break-all;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.forward-select-label {
font-size: 26rpx;
color: #666;
padding: 12rpx 30rpx 8rpx;
display: block;
}
.forward-conv-list {
flex: 1;
max-height: 400rpx;
padding: 0 20rpx;
}
.forward-empty {
display: flex;
justify-content: center;
align-items: center;
height: 160rpx;
color: #999;
font-size: 26rpx;
}
.forward-conv-item {
display: flex;
align-items: center;
padding: 22rpx 16rpx;
border-radius: 16rpx;
margin-bottom: 8rpx;
background: #fafafa;
transition: background 0.2s;
}
.forward-conv-item:active {
background: #eef4ff;
}
.forward-conv-selected {
background: #e8f0fe;
border: 2rpx solid #007aff;
}
.forward-conv-avatar {
width: 60rpx;
height: 60rpx;
border-radius: 14rpx;
background: #e8f0fe;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
flex-shrink: 0;
}
.forward-conv-info {
flex: 1;
min-width: 0;
}
.forward-conv-name {
font-size: 28rpx;
color: #333;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.forward-conv-check {
flex-shrink: 0;
margin-left: 12rpx;
}
.forward-modal-footer {
padding: 20rpx 30rpx 30rpx;
border-top: 2rpx solid #f0f0f0;
display: flex;
justify-content: flex-end;
gap: 20rpx;
}
.forward-modal-btn {
padding: 18rpx 48rpx;
border-radius: 16rpx;
font-size: 28rpx;
font-weight: 500;
}
.forward-btn-cancel {
background: #f0f0f0;
color: #666;
}
.forward-btn-cancel:active {
background: #e0e0e0;
}
.forward-btn-confirm {
background: #007aff;
color: #fff;
}
.forward-btn-confirm:active {
background: #005fcc;
}
.forward-btn-disabled {
background: #b0d0f0;
color: #fff;
pointer-events: none;
}
/* ==========新建聊天列表相关====== */
.close-option-card {
width: 100%;
@@ -619,7 +804,7 @@
.chat-message {
display: flex;
align-items: flex-start;
flex-direction: column;
margin: 14rpx 0;
box-sizing: border-box;
animation: msgFadeIn 0.3s ease;
@@ -631,6 +816,17 @@
}
.message-user {
align-items: flex-end;
}
/* avatar + 气泡行(上方) */
.message-row {
display: flex;
align-items: flex-start;
width: 100%;
}
.message-user .message-row {
flex-direction: row-reverse;
}
@@ -675,6 +871,9 @@
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
background: #ffffff;
border: 1rpx solid #eeeef5;
/* 启用文本选择复制 */
user-select: text;
-webkit-user-select: text;
}
.chat-content-user {
@@ -694,6 +893,81 @@
border-bottom-left-radius: 8rpx;
}
/* 消息操作栏 */
.message-actions {
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 16rpx;
padding-top: 12rpx;
border-top: 1rpx solid rgba(0, 0, 0, 0.06);
gap: 24rpx;
}
.message-actions-user {
justify-content: flex-start;
border-top-color: rgba(255, 255, 255, 0.3);
}
.message-action-item {
display: flex;
align-items: center;
gap: 6rpx;
padding: 8rpx 16rpx;
border-radius: 12rpx;
transition: all 0.2s ease;
}
.message-action-item:active {
background: rgba(0, 0, 0, 0.05);
transform: scale(0.95);
}
.message-actions-user .message-action-item:active {
background: rgba(255, 255, 255, 0.2);
}
.action-text {
font-size: 22rpx;
color: #999;
}
.message-actions-user .action-text {
color: rgba(255, 255, 255, 0.8);
}
/* 消息转发弹窗 */
.msg-actions {
display: flex;
align-items: center;
gap: 16rpx;
margin-top: 10rpx;
}
.msg-actions-user {
justify-content: flex-end;
}
.msg-action-btn {
display: flex;
align-items: center;
gap: 6rpx;
padding: 4rpx 0;
}
.msg-action-icon {
font-size: 26rpx;
}
.msg-action-label {
font-size: 22rpx;
color: #888;
}
.msg-action-forward {
margin-left: 8rpx;
}
/* 图片消息 */
.message-image {
max-width: 300rpx;